wking-io / elm-live

⚡ A flexible dev server for Elm. Live reload included.
https://elm-live.com
MIT License
1.05k stars 61 forks source link

Reload snippet not inserted when using --proxy-host #246

Open francois90 opened 3 years ago

francois90 commented 3 years ago

I'm using Elm with a Django backend, and i'd like to be able to use the html file that is served by django with elm-live, but when using the --proxy-host flag, the reload snippet isn't added to the html...

I tried specifying a --start-page but it seems like it is ignored also when using --proxy-host.

This is the command i'm using : elm-live src/Main.elm --proxy-host=http://127.0.0.1:8000/ --proxy-prefix=/ --port=8001 --hot -- --debug --output=../backend/market/static/market/js/main.js

any clue as to how i could take advantage of the auto-relaod feature while serving static files with my local backend server?

thank you

francois90 commented 3 years ago

I ended up adding the reload script in the django template and it works well. But still it seems like elm-live should handle that...