Skip to content

Commit 7db4fb3

Browse files
committed
Add instruction for using proddev to README
1 parent ceddf9c commit 7db4fb3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ Users from the populate script all have password `pennlabs`.
5858
- a. Navigate to `/frontend`
5959
- b. `yarn cypress open`
6060
- c. Click on `question.spec.ts`
61+
62+
### Emulating the production server
63+
This will, as best as possible, emulate the production configuration described in `/k8s/main.ts`.
64+
65+
1. Open a command prompt to `/backend`
66+
2. Run `docker compose --profile proddev up`
67+
3. To turn it off, use `CTRL+C` and then `docker compose --profile proddev down`
68+
69+
Note this will reuse the postgres database stored in `/backend/postgres`. You may reset this database by turinging off the docker containers and deleting `/backend/postgres`

0 commit comments

Comments
 (0)