Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Format
run: pnpm format:check

Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/ci.yml.bak

This file was deleted.

2 changes: 1 addition & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ TUNNEL_PORT=5433
DATABASE_URL=postgresql://webapp:<PASSORD>@localhost:5433/gamesdb
PORT=3001

JWT_SECRET=aaaa
JWT_SECRET=<openssl rand -base64 32>

2 changes: 1 addition & 1 deletion db/database-connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TUNNEL_PORT=5433
# backend server env vars
DATABASE_URL=postgresql://webapp:<PASSORD>@localhost:5433/gamesdb
PORT=3001
JWT_TOKEN=<server-rand-token>
JWT_SECRET=<server-rand-token>
```

## 2. Database-tilkobling under utvikling
Expand Down
4 changes: 2 additions & 2 deletions db/database-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ SELECT metacritic FROM games WHERE id = 4291;

## Import og rettigheter

Filer i `backend/db/`: `schema.sql`, `indexes.sql`, `grants.sql`, `load.py`, `requirements.txt`.
Filer i `db/`: `schema.sql`, `indexes.sql`, `grants.sql`, `load.py`, `requirements.txt`.

_Full reimport på VM-en (sletter også reviews)_:

```
cd backend/db && source .venv/bin/activate
cd db && source ~/venv/bin/activate
export DATABASE_URL='postgresql://gameapp:PASSORD@localhost:5432/gamesdb'
python load.py --force
psql "$DATABASE_URL" -f grants.sql
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-select.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
psql -h localhost -p 5433 -U gameapp -d gamesdb -c "SELECT count(*) FROM games;"
psql -h localhost -p 5433 -U webapp -d gamesdb -c "SELECT count(*) FROM games;"
Loading