Boring Database home page
Search...
⌘K
Dashboard
Dashboard
Search...
Navigation
Deployment
First Deployment
Get Started
Introduction
Quickstart
Config
Config
ShadCn UI
Emails + Authenticaiton
Setting up Resend
Authentication
Payment Emails
Stripe Payments
Stripe setup
Seeding Stripe Products
Webhooks
Adding Data
Load your dataset
Customize table
Deployment
Setup Fly
First Deployment
Github Actions
Scaling your App
Fly Machine Tips
On this page
Prerequisites
Steps
1. Launch Fly app
2. Setting Production Environment variables
3. Redeploy your app
Deployment
First Deployment
How to deploy your app to production
In this section we will cover how to deploy your app for the first time to fly.io
Prerequisites
A Fly.io account
Flyctl CLI installed and authenticated on your local machine
Steps
1. Launch Fly app
Ensure you have the fly cli installed and are authenticated.
Run this command in your terminal in the root directory of the boringdatabase app
Copy
fly
launch
Follow the console steps.
Fly will build and deploy your app to a fly subdomain
View the live logs in the fly dashboard - the deployment will fail at this point don’t panic!
2. Setting Production Environment variables
Now you have a fly machine you can set the production environment variables to get your app working.
Login to the fly dashboard
Find your new app and navigate to secrets.
Set all the production environment variables
You could choose to use the
TEST
environment variables for Stripe and update them to production at a later point.
3. Redeploy your app
Back in your repository terminal run:
Copy
fly
deploy
This will rebuild the app and apply the new environment variables.
Check the live logs again. You shouldn’t see any errors if everything has been set correctly.
You will see the logs for the
seed.ts
file working here too!
Setup Fly
Github Actions
Assistant
Responses are generated using AI and may contain mistakes.