Merge branch 'master' of https://github.com/failedxyz/easyctf
This commit is contained in:
commit
1574fb153b
4 changed files with 6 additions and 5 deletions
2
deploy
2
deploy
|
@ -7,4 +7,4 @@ sudo service nginx stop
|
|||
echo "Starting the server..."
|
||||
cd /home/vagrant/server
|
||||
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
4
scripts/gunicorn.py.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
from multiprocessing import cpu_count
|
||||
|
||||
bind = "0.0.0.0:8000"
|
||||
workers = cpu_count() * 2 + 1
|
|
@ -1 +1 @@
|
|||
import api.models
|
||||
import models
|
|
@ -3,9 +3,6 @@ from flask import Flask
|
|||
|
||||
import config
|
||||
import json
|
||||
import sys
|
||||
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
app.secret_key = config.SECRET
|
||||
|
|
Loading…
Reference in a new issue