mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
update use-git yunohost-admin to vite
This commit is contained in:
parent
35526826a3
commit
bbb20ce6cc
1 changed files with 5 additions and 5 deletions
10
ynh-dev
10
ynh-dev
|
@ -308,10 +308,10 @@ function use_git()
|
||||||
|
|
||||||
cd /var/cache/ynh-dev/yunohost-admin/
|
cd /var/cache/ynh-dev/yunohost-admin/
|
||||||
|
|
||||||
# Create .env file with the vm ip
|
# Inject container ip in .env file
|
||||||
# Will be used by webpack-dev-server to proxy api requests.
|
# Used by vite to expose itself on network and proxy api requests.
|
||||||
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
IP=$(hostname -I | tr ' ' '\n' | grep "\.")
|
||||||
echo "VUE_APP_IP=$IP" > .env
|
echo "VITE_IP=$IP" > .env
|
||||||
|
|
||||||
# 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 ]]
|
||||||
|
@ -357,8 +357,8 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /ynh-dev/yunohost-admin/app/
|
cd /ynh-dev/yunohost-admin/app/
|
||||||
info "Now running 'npm run serve'"
|
info "Now running 'npm run dev'"
|
||||||
npm run serve
|
npm run dev
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
error "Invalid package '${PACKAGES[i]}': correct arguments are 'yunohost', 'ssowat', 'moulinette', 'yunohost-admin' or nothing for all"
|
error "Invalid package '${PACKAGES[i]}': correct arguments are 'yunohost', 'ssowat', 'moulinette', 'yunohost-admin' or nothing for all"
|
||||||
|
|
Loading…
Add table
Reference in a new issue