Simple template to get started with Remix and PayloadCMS, without the monorepo messiness!
Copy .env.example to .env and fill the required environment variables.
yarn;
yarn dev
First, build your app for production:
yarn build
Then run the app in production mode:
yarn start
- 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