added app.wsgi (wsgi support) and README.md
This commit is contained in:
23
README.md
Normal file
23
README.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
# Vue-Flask wsgi boilerplate template
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Example Virtual Host Config for WSGI
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName vue-test
|
||||||
|
ServerAlias vue-test.local
|
||||||
|
ServerAdmin kurze@kit.edu
|
||||||
|
ErrorLog "/var/log/httpd/vue-test.local-error_log"
|
||||||
|
CustomLog "/var/log/httpd/vue-test.local-access_log" common
|
||||||
|
|
||||||
|
DocumentRoot /srv/http/vue_test/
|
||||||
|
WSGIScriptAlias / /srv/http/vue_test/app.wsgi
|
||||||
|
<Directory "/srv/http/vue_test/">
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
```
|
||||||
|
|
||||||
14
app.wsgi
Normal file
14
app.wsgi
Normal 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'
|
||||||
2
backend
2
backend
Submodule backend updated: ebc34e396d...bc50e23a22
Reference in New Issue
Block a user