Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Relevant Lines For the Python Flask server.
- ############################# flask_app.py ##########################
- #!env/bin/python3
- from flask import Flask, request, Response, render_template, url_for
- app = Flask(__name__, static_folder='./static/static')
- @app.route('/')
- def ret_react():
- return render_template("index.html")
- # This line isn't called unless I'm actively developing.
- if __name__ == "__main__":
- app.run("0.0.0.0", debug=False, port=80)
- ############################## wsgi.py #################################
- # this is what's called with Gunicorn
- from flask_app import app as application
- if __name__ == "__main__":
- application.run()
Advertisement
Add Comment
Please, Sign In to add comment