mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
commit
f7fdd8686a
2 changed files with 6 additions and 7 deletions
|
@ -126,9 +126,9 @@ ynh_script_progression --message="Installing The Lounge..." --weight=10
|
|||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
NODE_ENV=production ynh_exec_warn_less yarn install
|
||||
NODE_ENV=production yarn add webpack webpack-cli --dev
|
||||
NODE_ENV=production ynh_exec_warn_less yarn build
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -132,10 +132,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
#export NODE_ENV=production
|
||||
yarn install --production=true --silent
|
||||
yarn add webpack webpack-dev-server --dev --non-interactive
|
||||
yarn build --non-interactive
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue