Frederic DesgreniersBook RecomendationsNotes

Running a solid start app on fly.io

I created this note file to document the process, but it turns out it "just worked" using a couple of commands found on (fly.io/launchpad)[https://fly.io/launchpad]

So this note is just an artifact of the process, and not a guide.

Dependencies

Terminal window
brew install flyctl

Authenticate with fly.io

Use the command line authentication to log in to fly.io

Terminal window
flyctl auth login

Generate the fly.io deploy configs and dockerfile

Use the launch command to generate the relevant deploy artifacts

Terminal window
flyctl launch

This should give a diff similar to the one here: diff

Deploy to fly

Use the deploy command to deploy the app to fly.io

Terminal window
flyctl deploy

The output should contain a line similar to the following:

Terminal window
Visit your newly deployed app at https://frde-me.fly.dev/

As a fun side-effect, I changed the name of the app to a unique snapshot name

fly.toml
app = 'frde-me-snapshot-2024-02-25'

And deployed with the current state of frde.me, the result is at frde-me-snapshot-2024-02-25.fly.dev/, which will stay there until fly.io decides it doesn't want to host it anymore.