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
|
2016-01-03 04:03:55 +00:00
|
|
|
tmux kill-session -t ctf 2> /dev/null
|
2015-12-21 21:41:55 +00:00
|
|
|
|
2016-01-07 00:23:43 +00:00
|
|
|
sudo cp /vagrant/ctf.nginx /etc/nginx/sites-enabled/ctf
|
|
|
|
|
2015-12-21 21:41:55 +00:00
|
|
|
echo "Starting the server..."
|
2016-01-03 04:14:20 +00:00
|
|
|
cd /home/vagrant/server
|
2015-12-23 06:26:27 +00:00
|
|
|
sudo service nginx start
|
2016-03-03 05:36:51 +00:00
|
|
|
tmux new-session -s ctf -d 'tmux set remain-on-exit on && gunicorn "app:app" -c /home/vagrant/scripts/gunicorn.py.ini'
|