Deploy self hosted version of Trigger.dev to Fly.io
ghcr.io/triggerdotdev/trigger.dev:latest
app
property in the fly.toml
file to be something other than app = "trigger-v2-fly-demo"
.
fly launch
and make sure to answer them in the following way:MAGIC_LINK_SECRET
, SESSION_SECRET
and ENCRYPTION_KEY
LOGIN_ORIGIN
and APP_ORIGIN
https://trigger-v2-fly-demo.fly.dev
DIRECT_URL
DATABASE_URL
which was printed to your terminal after the creation step above:
AUTH_GITHUB_CLIENT_ID
and AUTH_GITHUB_CLIENT_SECRET
RESEND_API_KEY
, FROM_EMAIL
and REPLY_TO_EMAIL
We use Resend.com for email sending (including the magic-link signup/login system). They have a generous free tier of 100 emails a day that should be sufficient. Signup for Resend.com and enter the environment vars below
fly secrets set
command to stage the secrets to be used on first deploy:
fly platform vm-sizes
to see other options. The below app will cost about $30/month.
https://<your fly app name>.fly.dev/
in your browser and create an account, either using GitHub or a magic email link.
cd
into your Next.js project, then run the @trigger.dev/cli init
command to initialize your Next.js project:
Environments & API Keys
page to copy your dev
API key:
npm run dev
and then in a new terminal window you will need to run the @trigger.dev/cli dev
command to connect to your Trigger.dev instance and allow it to tunnel to your local Next.js server: