phoenix_playground
phoenix_playground copied to clipboard
Fly.io deployment
Brain dump again as I'm beta testing the library :smile:
It's only quite natural to want to deploy a MVP you've done with phoenix_playground
, which shortens the time to create a little demo, and I feel some adopters will likely want to do the same.
I've tried deploying on Fly (https://community.fly.io/t/mix-install-2-phoenix-deployment-on-fly/19275) but no success so far.
If I get there at some point (either via Docker or via their built-in Elixir support), maybe it would be a good idea to document that here, so that people can deploy with reduced friction.
I'm also looking at getting it running on fly and the short of it seems to be:
- Disable live reloader (this fails when deploying as-is and also you probably do not want/need it in a "prod" mode anyway.
- Be able to set Endpoint host config
- Be able to set Endpoint http ip config
I have my own version I'm using right now: https://github.com/ringvold/phoenix_playground/tree/fly-ready It's probably not merge worthy but it does work. 😃
This is how i use it: https://github.com/ringvold/elixir-json-to-map/tree/2c92ac0514c5471185074e8ec52c8b0570245044
I hope something like this kan be added to the project. 😄