This commit is contained in:
CommanderStrax 2015-12-23 16:35:14 -06:00
commit 1574fb153b
4 changed files with 6 additions and 5 deletions

2
deploy
View file

@ -7,4 +7,4 @@ sudo service nginx stop
echo "Starting the server..." echo "Starting the server..."
cd /home/vagrant/server cd /home/vagrant/server
sudo service nginx start sudo service nginx start
gunicorn --bind 0.0.0.0:8000 -w 1 "app:app" gunicorn "app:app" -c /home/vagrant/scripts/gunicorn.py.ini

4
scripts/gunicorn.py.ini Normal file
View file

@ -0,0 +1,4 @@
from multiprocessing import cpu_count
bind = "0.0.0.0:8000"
workers = cpu_count() * 2 + 1

View file

@ -1 +1 @@
import api.models import models

View file

@ -3,9 +3,6 @@ from flask import Flask
import config import config
import json import json
import sys
from flask import Flask
app = Flask(__name__) app = Flask(__name__)
app.secret_key = config.SECRET app.secret_key = config.SECRET