Powered by Remix and PayloadCMS.
- make sure you have a mongodb running on port 27017
- create a
.env
file in the root of the project and add the following environment variables:PAYLOAD_SECRET=secret MONGODB_URI=mongodb://localhost:27017/app
- run
pnpm dev
- have your MongoDB running somewhere
- have your S3 bucket for the media uploads ready
- Create an account on Fly.io
- Install the Fly CLI
- Run
flyctl login
and follow the prompts - Run
flyctl launch
in the project root - Enter
y
tocopy its configuration to the new app
- Enter
N
totweak these settings
- The app should deploy now
- Now you can set up the Github Action
- Create a deploy token by running
flyctl tokens create deploy
- Create a new secret on your repository called
FLY_API_TOKEN
with your deploy token atSettings > Secrets and Variables > Actions
Media files should be stored in a S3 bucket. Create a bucket at Cloudflare, AWS, or any other provider and fill the required environment variables in the .env file. When using Cloudflare R2, specify S3_REGION=auto