1
0
Fork 0
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:
ericgaspar 2022-01-04 14:31:04 +01:00
parent 7110c5cfed
commit 8f31c4666d
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 4 deletions

View file

@ -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
#=================================================

View file

@ -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