Skip to content

Fly.io deployment #3

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

Open
thbar opened this issue Apr 15, 2024 · 1 comment
Open

Fly.io deployment #3

thbar opened this issue Apr 15, 2024 · 1 comment

Comments

@thbar
Copy link

thbar commented Apr 15, 2024

Brain dump again as I'm beta testing the library 😄

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.

@ringvold
Copy link
Contributor

I'm also looking at getting it running on fly and the short of it seems to be:

  1. Disable live reloader (this fails when deploying as-is and also you probably do not want/need it in a "prod" mode anyway.
  2. Be able to set Endpoint host config
  3. 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. 😄

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

2 participants