Skip to content

linobino1/mauerwinzer-web

Repository files navigation

Mauerwinzer Website

Powered by Remix and PayloadCMS.

Development

  1. make sure you have a mongodb running on port 27017
  2. 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
  3. run pnpm dev

Production

  1. have your MongoDB running somewhere
  2. have your S3 bucket for the media uploads ready

Fly.io Setup

  1. Create an account on Fly.io
  2. Install the Fly CLI
  3. Run flyctl login and follow the prompts
  4. Run flyctl launch in the project root
  5. Enter y to copy its configuration to the new app
  6. Enter N to tweak these settings
  7. The app should deploy now
  8. Now you can set up the Github Action

Github Action

  1. Create a deploy token by running flyctl tokens create deploy
  2. Create a new secret on your repository called FLY_API_TOKEN with your deploy token at Settings > Secrets and Variables > Actions

Media Files

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

Releases

No releases published

Packages

No packages published

Languages