You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,20 +38,33 @@ Slack does **not** support localhost or http protocol.
38
38
39
39
If you are not running with auth then localhost is fine.
40
40
41
+
## Local running with docker compose
42
+
43
+
You will need to provide the same environment variables as above in a file called `local.env` in the root directory.
44
+
45
+
Note - this file is also useful when running from Idea with the envfile plugin.
46
+
47
+
This file MUST NOT be committed to git (it is in .gitignore).
48
+
41
49
## Deploy
42
50
43
51
Assuming we will build a docker container - add to [backend action](./.github/workflows/backend.yaml) when decided.
44
52
45
-
Currently it is setup for the frontend to proxy the backend - anything on `/api/*`, as well as `/login` and `/slackCallback`
53
+
Currently it is setup for the frontend to proxy the backend - anything on `/api/*`, as well as `/login` and
54
+
`/slackCallback`
46
55
47
56
For example - let's say we setup:
48
57
49
58
https://cupcake_backend.javazone.no -> backend
50
59
https://cupcake.javazone.no -> frontend
51
60
52
-
We need to set the host in the frontend for non development builds to `https://cupcake_backend.javazone.no` in the [nuxt.config.js](./frontend/nuxt.config.js) file.
61
+
We would then need to set the host in the frontend for non development builds to `https://cupcake_backend.javazone.no` in
62
+
the [proxy](./frontend/server/middleware/proxy.ts) file - but this is set using the CUPCAKE_BACKEND env var.
63
+
64
+
All app configuration for the backend is done via the environment.
53
65
54
-
App configuration for the backend is done via the environment.
66
+
If deploying with docker - you can place both on the same docker network and use the service name for the env var - see
67
+
[docker-compose.yml](./docker-compose.yml) for an example.
55
68
56
69
### JWT
57
70
@@ -76,7 +89,8 @@ We use the same user and password for dev and deploy here but it must be set in
76
89
77
90
This provides login and access checking.
78
91
79
-
We can use the same slack client for dev and deploy but we have to set the correct callback URL both in the environment AND in the slack app config on https://api.slack.com
92
+
We can use the same slack client for dev and deploy but we have to set the correct callback URL both in the environment
93
+
AND in the slack app config on https://api.slack.com
0 commit comments