From 26af32af77cd72e49cc97a26fc1e5437e74cef2b Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Tue, 1 May 2018 13:20:55 +0200 Subject: [PATCH] Update install --- scripts/install | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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