Skip to content
Snippets Groups Projects
Commit fbb0220a authored by Aymeric Bernard's avatar Aymeric Bernard
Browse files

Removed useless cd in update_server

parent 2a7cf0dc
No related branches found
No related tags found
No related merge requests found
{
"apps": [
{
"script": "../server/index.js",
"script": "server/index.js",
"name": "tv-panel",
"instances": "1",
"exec_mode": "cluster"
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment