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/
|
||||
|
||||
# Create .env file with the vm ip
|
||||
# Will be used by webpack-dev-server to proxy api requests.
|
||||
if [[ ! -e .env ]]
|
||||
then
|
||||
info "Creating .env file"
|
||||
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
||||
echo "VUE_APP_IP=$IP" > .env
|
||||
fi
|
||||
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
||||
echo "VUE_APP_IP=$IP" > .env
|
||||
|
||||
# Allow port 8080 in config file or else the dev server will stop working after postinstall
|
||||
if [[ ! -e /etc/yunohost/installed ]]
|
||||
|
|
Loading…
Reference in a new issue