Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion flaskapp/flaskapp.wsgi
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#WSGI is basically a protocol defined so that Python application can
#communicate with a web-server and thus be used as web-application outside of CGI.
#reference: http://pymbook.readthedocs.org/en/latest/flask.html
import sys
import os
import site
Expand All @@ -12,7 +15,7 @@ activate_env=os.path.expanduser("/home/ec2-user/Disaster-Analysis/venv/bin/activ
#execfile(activate_env)
execfile(activate_env, dict(__file__=activate_env))

#adds /var/www/html/flaskapp to first indice of path
sys.path.insert(0, '/var/www/html/flaskapp')


from flaskapp import app as application