remove --production
This commit is contained in:
parent
6880f71a6f
commit
416f80c221
@ -63,7 +63,6 @@ ynh_remove_nodejs
|
||||
#=================================================
|
||||
|
||||
# remove tmp files
|
||||
sudo -u $app rm -rf /tmp/*
|
||||
ynh_secure_remove "/var/tmp/*"
|
||||
|
||||
# Remove the app directory securely
|
||||
|
@ -141,4 +141,4 @@ chown -R "$app":"$app" "/var/log/$app"
|
||||
# START SERVICE
|
||||
#=================================================
|
||||
|
||||
ynh_systemd_action --action=start --service_name=$app
|
||||
ynh_systemd_action --action=start --service_name=$app --line_match="Browse to http://localhost:"
|
||||
|
@ -125,11 +125,8 @@ chown -R "$app":"$app" "$final_path"
|
||||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install "graphql@^0.13.1"
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install "acorn@^6.0.0"
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install "babel-core@>=6.0.20"
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install "eslint@>=5.0.0"
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||
sudo -u $app env PATH=$PATH:$nodejs_path npm run build
|
||||
popd
|
||||
@ -185,4 +182,4 @@ systemctl reload nginx
|
||||
# START SERVICE
|
||||
#=================================================
|
||||
|
||||
ynh_systemd_action --action=start --service_name=$app
|
||||
ynh_systemd_action --action=start --service_name=$app --line_match="Browse to http://localhost:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user