Use this template to launching wordpress on fly.io
First install and authenticate with flyctl
tool
curl -L https://fly.io/install.sh | sh
export FLYCTL_INSTALL="$HOME/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"
fly auth login
Then launch from the template:
fly launch --from https://github.com/raven-consult/fly-wordpress --no-deploy
Update the environment variable from the example env file:
cp .env.example .env
vim .env
Then set the environment variables as fly.io secrets
cat .env | fly secrets import
Upon successful staging, you can then deploy
fly deploy --ha=false