Skip to content
Snippets Groups Projects
Commit 46d88f19 authored by Ayc0's avatar Ayc0
Browse files

Add script that restart server

parent 835203e4
Branches
No related tags found
No related merge requests found
{
"apps": [
{
"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
cd $CWD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment