I am facing problem while deploying flask application on bluehost server. I made a newdomain.maindomain.com subdomain, and later did the following:
SSHed to the "newdomain" folder
created virtualenv and installed flask
created a file called "passenger_wsgi.py"
import sys,os
INTERP = os.path.join(os.environ['HOME'],'medsathome.freedatametric.com','bin','python')
if sys.executable != INTERP:
os.execl(INTERP,INTERP,*sys.argv)
sys.path.append(os.getcwd())
from flask import Flask
application = Flask(__name__)
@application.route('/')
def index():
return 'Hello Passenger'
now when I go to the link, I dont see Hello Passenger being printed on screen. What is wrong?