migration to o2switch

main
erreur401 2 years ago
parent 86d444d913
commit 463ae815d4
  1. 13
      app.wsgi
  2. 1
      passenger_wsgi.py
  3. 20
      uwsgi.ini

@ -0,0 +1,13 @@
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
def application(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
message = 'It works!\n'
version = 'Python v' + sys.version.split()[0] + '\n'
response = '\n'.join([message, version])
return [response.encode()]

@ -0,0 +1 @@
from app import application

@ -0,0 +1,20 @@
[uwsgi]
module = app:app
master = true
#callable = app
#plugins = python3
wsgi-file = /home/zvevqx/app/flaskapp/app.py
home = /home/zvevqx/app/flaskapp
mount = /flaskapp=app.py
manage-script-name = true
virtualenv = /home/zvevqx/app/flaskapp/venv
socket = /tmp/app.sock
chmod-socket = 666
env = DEBUG=False
env = SCRIPT_NAME=/flaskapp
die-on-term = true
vaccuum = true
Loading…
Cancel
Save