easyctf-2017/deploy

12 lines
287 B
Text
Raw Normal View History

2015-12-21 07:04:00 +00:00
#!/bin/bash
2015-12-21 21:41:55 +00:00
echo "Stopping the server..."
pkill gunicorn
2015-12-23 06:26:27 +00:00
sudo service nginx stop
tmux kill-session -t ctf 2> /dev/null
2015-12-21 21:41:55 +00:00
echo "Starting the server..."
cd /home/pi/easyctf/server
2015-12-23 06:26:27 +00:00
sudo service nginx start
tmux new-session -s ctf -d 'gunicorn "app:app" -c /home/pi/easyctf/gunicorn.py.ini'