diff --git a/scripts/ecosystem.config.json b/scripts/ecosystem.config.json index 8e35d1837e3f1160f0cadc990901b5282419984c..8ae88c496429a41326588e1e40b7a8e9db03fa78 100644 --- a/scripts/ecosystem.config.json +++ b/scripts/ecosystem.config.json @@ -1,7 +1,7 @@ { "apps": [ { - "script": "../server/index.js", + "script": "server/index.js", "name": "tv-panel", "instances": "1", "exec_mode": "cluster" diff --git a/scripts/update_server.sh b/scripts/update_server.sh old mode 100644 new mode 100755 index 63437ac86f8a7a02b15747a065437d071f9cbe11..8b4f37a2162ff46504765674725b12cced171230 --- a/scripts/update_server.sh +++ b/scripts/update_server.sh @@ -1,27 +1,18 @@ #!/bin/bash -CWD=$(pwd) - -DIRECTORY=$(cd `dirname $0` && pwd) -cd $DIRECTORY - # Pull code git fetch # git reset --hard origin/master # Install deps -cd ../ yarn install --pure-lockfile # Build front yarn build:front # Restart server -cd scripts -pm2 startOrRestart ecosystem.config.json +pm2 startOrRestart ./scripts/ecosystem.config.json # Restart screen screen -S TVPanelScreen -X quit -./start_tv_panel.sh - -cd $CWD +./scripts/start_tv_panel.sh