- requried environment variable: "DATABASE_URL" - PostgreSQL connection string.
using a direct environment variable, or an.env
file inside the "server" dir. - run
npm run install-all
- run
npm run dev
- Activate Github Actions for your repo.
- Signup to fly.io, then login using fly's command line tool
fly auth login
- add a token to the Github repo, click "New repository secret" button, enter the name as FLY_API_TOKEN, and copy
fly tokens create deploy -x 999999h
output. - run
fly launch
in the main dir, - when asked - say yes for postgresql.
- add
release_command = "npm run release-command"
under[deploy]
(as appears in the existing fly.toml file.) - push the fly.toml, and validate that the action runs successfully.