Skip to content

Commit dbee63a

Browse files
rogupNick Stokoe
authored and
Nick Stokoe
committed
Setup BE Glitchtip key in env files
1 parent 87daf84 commit dbee63a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

apps/front-end/.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
VITE_API_URL=replace-me
2-
VITE_GLITCHTIP_KEY=dont-use-on-development
32
VITE_MAPTILER_API_KEY=replace-me

deploy.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ set -vx
2121
# - PROXY_PORT: the port number being proxied (e.g. '4000')
2222
# - PROXY_PATH: the path being proxied (e.g. '/api')
2323
# - BASE_URL_PATH # not actually used but might be in future?
24-
# - GLITCHTIP_KEY
24+
# - FE_GLITCHTIP_KEY
25+
# - BE_GLITCHTIP_KEY
2526
# - MAPTILER_API_KEY
2627
# - DBUS_SESSION_BUS_ADDRESS: required for service management
2728
# - FIXME the user can write to DEPLOY_DEST, WWW_ROOT
@@ -84,7 +85,7 @@ cp .tool-versions "$DEPLOY_DEST"
8485
# FIXME these shouldn't be hardwired!
8586
cat >>.env <<EOF
8687
VITE_API_URL=/api
87-
VITE_GLITCHTIP_KEY=${GLITCHTIP_KEY:?}
88+
VITE_GLITCHTIP_KEY=${FE_GLITCHTIP_KEY:?}
8889
VITE_MAPTILER_API_KEY=${MAPTILER_API_KEY:?}
8990
EOF
9091

@@ -105,6 +106,7 @@ EOF
105106
cat >>"$BE_DEST/.env" <<EOF
106107
SERVER_DATA_ROOT=$DATA_DEST
107108
FASTIFY_PORT=$PROXY_PORT
109+
GLITCHTIP_KEY=${BE_GLITCHTIP_KEY:?}
108110
# root address?
109111
EOF
110112

docs/deployment.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ values redacted:
7676
export PROXY_PORT=1$UID
7777
export PROXY_PATH=/api
7878
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/bus
79-
export GLITCHTIP_KEY=*REDACTED*
79+
export FE_GLITCHTIP_KEY=*REDACTED*
80+
export BE_GLITCHTIP_KEY=*REDACTED*
8081
export MAPTILER_API_KEY=*REDACTED*
8182

8283
*Note: paths here should be absolute - relative paths will not work in

0 commit comments

Comments
 (0)