easyctf-2017/deploy

12 lines
287 B
Bash
Executable file

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