✨ update wsgi file for virtual environment
This commit is contained in:
parent
fdbb29fb5a
commit
aecd757d6c
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
||||||
|
#!/usr/bin/python
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(1, os.path.dirname(__file__))
|
import logging
|
||||||
|
logging.basicConfig(stream=sys.stderr)
|
||||||
|
sys.path.insert(0, os.path.dirname(__file__))
|
||||||
|
activate_this = os.path.join(os.path.dirname(__file__), 'bin/activate_this.py')
|
||||||
|
with open(activate_this) as file_:
|
||||||
|
exec(file_.read(), dict(__file__=activate_this))
|
||||||
|
|
||||||
from app import create_app
|
from app import create_app
|
||||||
|
|
||||||
def application(environ, start_response):
|
def application(environ, start_response):
|
||||||
|
|
Loading…
Reference in a new issue