This repository has no description
755 B
23 lines
1## DB Migrations
2
3- Whenever there are changes to existing sql schema files (`.sql.ts`) or new schema files are created, you must run `npm run db:generate`.
4- This will generate migration files for drizzle to run during app initialization
5
6## Fly.io managed postgres
7
8- connect with psql `fly mpg connect`
9
10## deployment
11
12- `fly launch` (create/configure/deploy new app)
13- `fly deploy` (deploy app/redeploy after changes)
14- `fly logs --app annos`
15- `fly secrets set SUPER_SECRET_KEY=password1234`
16- make sure that new environment vars are added as secrets with the above command
17
18## local development with mocked backend
19
20- `npm install`
21- in one terminal: `npm run dev:mock`
22- another terminal: `npm run webapp:dev`
23- ui is available on `localhost:4000`