Let's get Rumbl-ed!
To start your own Rumbl server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
First you need to login to Fly.io with flyctl.
$ flyctl auth loginThen you'll need to create a new remote server.
It will create some useful files that flyctl will use for easy deployment.
$ fly launch --nowAt the very last part of deployment, you'll confront error that DATABASE_URL is missing.
That's obvious since we've got no database connected.
There are several options for remote databases.
For ease I use Fly Postgres. I can just create it by typing,
$ fly postgres createThen you can attach Postgres database to our app with this command.
Replace <app-name> and <database-name> with real app/db name that you've created on previous step.
$ flyctl postgres attach --app <app-name> <database-name>