Silence tmux kill-session from outputting error
This commit is contained in:
parent
3e760af950
commit
a0361a220e
1 changed files with 3 additions and 3 deletions
6
deploy
6
deploy
|
@ -3,9 +3,9 @@
|
||||||
echo "Stopping the server..."
|
echo "Stopping the server..."
|
||||||
pkill gunicorn
|
pkill gunicorn
|
||||||
sudo service nginx stop
|
sudo service nginx stop
|
||||||
tmux kill-session -t ctf
|
tmux kill-session -t ctf 2> /dev/null
|
||||||
|
|
||||||
echo "Starting the server..."
|
echo "Starting the server..."
|
||||||
cd /home/vagrant/server
|
cd /home/pi/easyctf/server
|
||||||
sudo service nginx start
|
sudo service nginx start
|
||||||
tmux new-session -s ctf -d 'gunicorn "app:app" -c /home/vagrant/scripts/gunicorn.py.ini'
|
tmux new-session -s ctf -d 'gunicorn "app:app" -c /home/pi/easyctf/gunicorn.py.ini'
|
||||||
|
|
Loading…
Add table
Reference in a new issue