added app.wsgi (wsgi support) and README.md

This commit is contained in:
Tobias Kurze
2019-03-26 11:58:40 +01:00
parent b051b6b405
commit e43fe25b17
3 changed files with 38 additions and 1 deletions

14
app.wsgi Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/python
activate_this = '/srv/http/vue_test/venv/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0, "/srv/http/vue_test/")
from backend import app as application
application.secret_key = 'Add your secret key'