easyctf-2017/deploy

12 lines
276 B
Text
Raw Normal View History

2015-12-21 01:04:00 -06:00
#!/bin/bash
2015-12-21 16:41:55 -05:00
echo "Stopping the server..."
pkill gunicorn
2015-12-23 00:26:27 -06:00
sudo service nginx stop
2015-12-25 23:48:20 -06:00
tmux kill-session -t ctf
2015-12-21 16:41:55 -05:00
echo "Starting the server..."
2015-12-21 17:37:08 -05:00
cd /home/vagrant/server
2015-12-23 00:26:27 -06:00
sudo service nginx start
2015-12-25 23:48:20 -06:00
tmux new-session -s ctf -d 'gunicorn "app:app" -c /home/vagrant/scripts/gunicorn.py.ini'