Add gunicorn deploy script
This commit is contained in:
parent
229441ee32
commit
78004cc50c
1 changed files with 6 additions and 0 deletions
6
deploy
Normal file → Executable file
6
deploy
Normal file → Executable file
|
@ -1,2 +1,8 @@
|
|||
#!/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"
|
||||
|
|
Loading…
Reference in a new issue