Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.99 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.99 KB

This is a Next.js project bootstrapped with create-next-app.

Getting Started

  1. Run yarn install both in this directory and the parent directory
  2. Run yarn docker:start

If you experience any issues with posgres, make sure you do not already have a postgres service running locally outside of docker.

  1. Add .env.local (see .env.example)
  2. yarn db:migrate:local

Running the development server

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Email

Open http://localhost:8025 to open the development mailbox.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on fly.io

  1. Install fly.io https://fly.io/docs/speedrun/
  2. Add .env.production file with DATABASE_URL set (currently required for prisma db push)
  3. yarn deploy
  4. Deploy a postgresql database on fly.io (lightsats-db)
  5. flyctl postgres attach --app lightsats lightsats-db OR flyctl secrets set DATABASE_URL=postgres://postgres:[email protected]:5432/lightsats?schema=public --app lightsats
  6. set NEXTAUTH_SECRET: flyctl secrets set NEXTAUTH_SECRET=XXXXXXXXXXXXXXXXXXXXX --app lightsats-prod
  7. add other secrets (see .env.example)
  8. create .sentryclirc (see .sentryclirc.example)

Automatic Deployments (Main Application)

Automatic Deployments (Scheduler app)

TODO