Search code examples
apache-superset

How to reflect the changes done in source code in apache superset?


I have been making lots of changes in appearance source code (variables.less => static/assets/variables.less) of superset and then did a superset init but nothing changed. Do we have to do something else to reconfigure those changes? enter image description here


Solution

  • Superset init creates default roles and permissions, so it's a backend task! When you want to customize superset you should run backend and frontend separately as per official instructions.

    Then in a terminal you should have a tab for the backend, and another for the frontend. When changing the frontend's code you'll have to run npm install inside the superset-frontend directory once, and to run it you will have to run the command npm run dev-server.

    All these steps are documented in the link I provided though. I recommend re-reading the documentation.