Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- sys.path.append("/home/username/public_html/flask");
- sys.path.insert(0, os.path.dirname(__file__))
- try:
- from website import main, app as application
- except e:
- from error_app import app as application
- application.logger.error(e)
- # If we are executing this file directly
- if __name__ == '__main__':
- # Log a warning as this file should be run by Apache WSGI
- application.logger.warning('Running manually. Is something wrong?')
- application.run(host='0.0.0.0', debug=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement