easyctf-2017/deploy
Michael Zhang e3b20830b5 updates
2015-12-25 23:48:20 -06:00

11 lines
276 B
Bash
Executable file

#!/bin/bash
echo "Stopping the server..."
pkill gunicorn
sudo service nginx stop
tmux kill-session -t ctf
echo "Starting the server..."
cd /home/vagrant/server
sudo service nginx start
tmux new-session -s ctf -d 'gunicorn "app:app" -c /home/vagrant/scripts/gunicorn.py.ini'