GitHub user dosubot[bot] added a comment to the discussion: apache superset production deployment
<!-- Greeting --> Hi @SrijaniDasgupta! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> To deploy your custom frontend changes (like the pivot table plugin) to your Linux production environment where Superset was installed via pip, you need to manually build the frontend assets and replace the static files used by Superset. Here’s how you can do it: 1. On your development machine, in the `superset-frontend` directory, run `npm install` and then `npm run build` to generate the production-ready frontend assets. 2. Copy the contents of the build output (typically the `superset-frontend/build` directory) to the `superset/static/assets` directory in your Linux virtual environment, overwriting the existing files. This ensures your changes are reflected in production, since pip installs prebuilt static assets that won’t include your modifications unless you replace them yourself. This process is necessary because pip-based installations do not automatically rebuild frontend assets from source; they use the prebuilt files included in the package. Manual replacement is the recommended approach for custom frontend deployments outside Docker environments, as confirmed by the Superset build process and Makefile [reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Makefile). **Caveats:** - Your changes may be overwritten if you upgrade Superset via pip, so you’ll need to repeat this process after upgrades. - Make sure your build matches the Superset version running in production to avoid compatibility issues. Let me know if you need more details on any of the steps! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e6e10f6c-48ce-4518-b96a-22b063c85266?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34729) GitHub link: https://github.com/apache/superset/discussions/34729#discussioncomment-14137543 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
