diff --git a/scripts/install b/scripts/install index 0d4aa42..e772a91 100644 --- a/scripts/install +++ b/scripts/install @@ -112,16 +112,18 @@ ynh_system_user_create $app # Create a dedicated systemd config ynh_add_systemd_config +#================================================= +# MODIFY A CONFIG FILE +#================================================= + +cp -a ../conf/config.js $config_path + #================================================= # INSTALL THE LOUNGE #================================================= npm -g install $final_path - - -#================================================= -# MODIFY A CONFIG FILE -#================================================= -cp -a ../conf/config.js $config_path +cd $final_path +NODE_ENV=production npm run build #================================================= # STORE THE CHECKSUM OF THE CONFIG FILE