mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
Set env to prod
This commit is contained in:
parent
7110c5cfed
commit
8f31c4666d
2 changed files with 2 additions and 4 deletions
|
@ -128,7 +128,6 @@ pushd $final_path
|
|||
ynh_use_nodejs
|
||||
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 NODE_ENV=production yarn build
|
||||
#ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn link
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -131,10 +131,9 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
|
|||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
ynh_use_nodejs
|
||||
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
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
|
||||
popd
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue