Add gunicorn deploy script

This commit is contained in:
James Wang 2015-12-21 16:41:55 -05:00
parent 229441ee32
commit 78004cc50c

6
deploy Normal file → Executable file
View file

@ -1,2 +1,8 @@
#!/bin/bash #!/bin/bash
echo "Stopping the server..."
pkill gunicorn
echo "Starting the server..."
cd server
gunicorn --bind 0.0.0.0:8000 -w 1 "app:app"