For this lab we will use https://fly.io/
- Sign up for an account
- It tells you to add a payment method - I will give you details
- Open your email to verify your email for fly
First, check to see whether you have the "fly" CLI already installed.
If executing this:
flyctl
prints something like this (truncated here):
This is flyctl, the Fly.io command line interface.
Usage:
flyctl [flags]
flyctl [command]
...
then the "fly" CLI is already installed.
Otherwise:
brew install flyctl
fly auth login
fly launch
Answer the questions as below:
Would you like to copy its configuration to the new app? (y/N)
y
Do you want to tweak these settings before proceeding? (y/N)
n
fly deploy
fly logs
docker build -t simple-web-app-using-fly .
docker run -p 8123:8123 simple-web-app-using-fly
Then view http://localhost:8123/
docker container prune -f
from: https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
fly tokens create deploy -x 999999h