Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
francois90 opened this issue Dec 16, 2020 · 1 comment
Open

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

francois90 opened this issue Dec 16, 2020 · 1 comment

Comments

@francois90
Copy link

francois90 commented Dec 16, 2020

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
Copy link
Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant