amirOrbe

amirOrbe

Deploy a simple app in Fly.io

Hi :slight_smile:

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 :thinking: but i’m not sure if i need add something to my proyect or config something…

I want do this for free :slight_smile: it’s only for learn purpose :slight_smile: thanks!

Marked As Solved

arcyfelix

arcyfelix

This is the first result if I Google: “deploy phoenix to fly io”.

Also Liked

tomg

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

Last Post!

amirOrbe

amirOrbe

Thank you so much it works :slight_smile:

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 131117 1222
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New

We're in Beta

About us Mission Statement