mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
use-git yunohost-admin: always update VUE_APP_IP
This commit is contained in:
parent
b0d6fe5ca0
commit
ee4d6b3cac
1 changed files with 3 additions and 6 deletions
9
ynh-dev
9
ynh-dev
|
@ -275,14 +275,11 @@ function use_git()
|
||||||
}
|
}
|
||||||
|
|
||||||
cd /var/cache/ynh-dev/yunohost-admin/
|
cd /var/cache/ynh-dev/yunohost-admin/
|
||||||
|
|
||||||
# Create .env file with the vm ip
|
# Create .env file with the vm ip
|
||||||
# Will be used by webpack-dev-server to proxy api requests.
|
# Will be used by webpack-dev-server to proxy api requests.
|
||||||
if [[ ! -e .env ]]
|
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
||||||
then
|
echo "VUE_APP_IP=$IP" > .env
|
||||||
info "Creating .env file"
|
|
||||||
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
|
||||||
echo "VUE_APP_IP=$IP" > .env
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Allow port 8080 in config file or else the dev server will stop working after postinstall
|
# Allow port 8080 in config file or else the dev server will stop working after postinstall
|
||||||
if [[ ! -e /etc/yunohost/installed ]]
|
if [[ ! -e /etc/yunohost/installed ]]
|
||||||
|
|
Loading…
Reference in a new issue