Silence tmux kill-session from outputting error

This commit is contained in:
James Wang 2016-01-03 04:03:55 +00:00
parent 3e760af950
commit a0361a220e

6
deploy
View file

@ -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'