https://dlukes.github.io/flask-wsgi-url-prefix.html
from flask import Flask, url_for
app = Flask(__name__)
@app.route("/")
def index():
return url_for("index")
SCRIPT_NAME=/my-app gunicorn app:app
https://dlukes.github.io/flask-wsgi-url-prefix.html
from flask import Flask, url_for
app = Flask(__name__)
@app.route("/")
def index():
return url_for("index")
SCRIPT_NAME=/my-app gunicorn app:app