From a0361a220e7e7a2c8f5707bd69614e037771ecd1 Mon Sep 17 00:00:00 2001 From: James Wang Date: Sun, 3 Jan 2016 04:03:55 +0000 Subject: [PATCH] Silence tmux kill-session from outputting error --- deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy b/deploy index 628c543..8ad8cfa 100755 --- a/deploy +++ b/deploy @@ -3,9 +3,9 @@ echo "Stopping the server..." pkill gunicorn sudo service nginx stop -tmux kill-session -t ctf +tmux kill-session -t ctf 2> /dev/null echo "Starting the server..." -cd /home/vagrant/server +cd /home/pi/easyctf/server 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'