amirOrbe
Deploy a simple app in Fly.io
Hi 
I never deploy an app so i’m learning, i want deploy an app in fly.io, my app use Elixir and Phoenix Live View, i only have two simple live views and i save a name and a descripction of a product my app it’s a shopping list that update in realtime, i don’t have Users, etc.. i only have a simple migration with a table, now how can i deploy this app using Fly.io ?
I read that you can create your own database for the same app using a command like flyctl postgres create
but i’m not sure if i need add something to my proyect or config something…
I want do this for free
it’s only for learn purpose
thanks!
Marked As Solved
arcyfelix
This is the first result if I Google: “deploy phoenix to fly io”.
Also Liked
tomg
When you run fly launch, make sure to select or add a postgres database. After that, run fly deploy in the terminal, that should start the deploy process.
The db uri is automatically added by fly and set as a env variable. With a standard phoenix setup it should just work
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








