Skip to content

majudhu/slut

Repository files navigation

Welcome to Remix!

Fly Setup

  1. Install flyctl

  2. Sign up and log in to Fly

flyctl auth signup
  1. Setup Fly. It might ask if you want to deploy, say no since you haven't built the app yet.
flyctl launch

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

If you've followed the setup instructions already, all you need to do is run this:

Run either one command to set the session secret environment variable

flyctl secrets set SESSION_SECRET="$(openssl rand -base64 33)"
flyctl secrets set SESSION_SECRET="$(head -c33 /dev/urandom | base64)"
npm run deploy

You can run flyctl info to get the url and ip address of your server.

Check out the fly docs for more information.

Prisma

Sync schema changes to database during development

pnpm prisma db push

Create database migration

pnpm prisma migrate dev

Apply database migration on deployment

pnpm prisma migrate deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published