phoenix_playground icon indicating copy to clipboard operation
phoenix_playground copied to clipboard

Question: autoreload when deps change?

Open crbelaus opened this issue 7 months ago • 2 comments
trafficstars

In the ErrorTracker we are using Phoenix Playground for development purposes.

We have a dev.exs script that runs an example Phoenix application with the ErrorTracker as a dependency. This script is built with Phoenix Playground.

The goal is to have a sample application to test the ErrorTracker integration and the dashboard, so we can make changes and see how they look and feel.

Currently, when we make a change to the ErrorTracker we have to manually kill it and restart it again. This is not a big deal, but I wonder if there is a way to instruct the Phoenix Playground to recompile itself when changes are made.

crbelaus avatar Mar 27 '25 09:03 crbelaus

Thank you for the report. I will look into it. In the meantime, can you try https://github.com/thmsmlr/livescript? If you do so, make sure to call PhoenixPlayground.start(..., live_reload: false) since LiveScript does reloading too.

wojtekmach avatar Mar 27 '25 13:03 wojtekmach

Thanks @wojtekmach

Will check LiveScript (hopefully this week) and report back!

crbelaus avatar Apr 09 '25 06:04 crbelaus