Merge branch 'master' into enh-vuejs

This commit is contained in:
Kayou 2021-01-19 23:26:29 +01:00 committed by GitHub
commit 5cd45f12ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 4 deletions

View file

@ -17,6 +17,7 @@ Please report issues on the following repository:
* [4. Testing the web interface](#4-testing-the-web-interface)
* [Advanced: using snapshots](#advanced-using-snapshots)
* [Alternative: Only Virtualbox](#alternative-using-only-virtualbox)
* [Troubleshooting](#troubleshooting)
- [Remote Development Environment](#remote-development-environment)
* [1. Setup your VPS and install YunoHost](#1-setup-your-vps-and-install-yunohost)
@ -225,6 +226,13 @@ this repository. This is a known working setup used by some developers. Please
see the ["virtualbox" branch](https://github.com/YunoHost/ynh-dev/tree/virtualbox#develop-on-your-local-machine)
for more.
## Troubleshooting
If you experiment network issues with your lxd during rebuild container steps. Probably your container are not able to get a local IP with DHCP.
It could be due to bridge conflict (for example if you have lxc installed too) or dnsmasq port already used.
This [ticket](https://github.com/YunoHost/issues/issues/1664) could help.
# Remote Development Environment
Here is the development flow:

16
ynh-dev
View file

@ -219,10 +219,16 @@ function show_vm_ip()
function use_git()
{
assert_inside_vm
local PACKAGES="$@"
for PACKAGE in "$PACKAGES";
local PACKAGES=("$@")
if [ "$PACKAGES" = "" ]
then
PACKAGES=('moulinette' 'ssowat' 'yunohost' 'yunohost-admin')
fi
for i in ${!PACKAGES[@]};
do
case $PACKAGE in
case ${PACKAGES[i]} in
ssowat)
create_sym_link "/ynh-dev/ssowat" "/usr/share/ssowat"
success "Now using Git repository for SSOwat"
@ -395,6 +401,8 @@ EOF
systemctl reload nginx
cd /ynh-dev/yunohost-admin-vue/app/
npm run serve
*)
error "Invalid package '${PACKAGES[i]}': correct arguments are 'yunohost', 'ssowat', 'moulinette', 'yunohost-admin' or nothing for all"
;;
esac
done
@ -455,4 +463,4 @@ function run_tests()
done
}
main "$@"
main $@