GitHub user dosubot[bot] added a comment to the discussion: SUPERSET_APP_ROOT in pypi deployment
<!-- Answer --> To pass the `FLASK_APP` variable when using Gunicorn, you can set it as an environment variable before running the Gunicorn command. Here's how you can do it: 1. Set the `FLASK_APP` environment variable in your shell: ```bash export FLASK_APP="superset:create_app(superset_app_root='/analytics')" ``` 2. Run the Gunicorn command: ```bash gunicorn -w 4 -b 0.0.0.0:8088 "${FLASK_APP}" ``` This will ensure that the `FLASK_APP` variable is available to the Gunicorn process, allowing Superset to be served under the `/analytics` prefix <sup>[[1]](https://github.com/apache/superset/blob/master/docker/entrypoints/run-server.sh)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/47610251-67b1-4262-aab8-4090cfc341c3?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33391#discussioncomment-13085179 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org