Skip to content

Commit

Permalink
fix: various issues & sentry (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy authored Feb 8, 2025
2 parents c668afe + 84658df commit 61ea7d7
Show file tree
Hide file tree
Showing 11 changed files with 896 additions and 213 deletions.
17 changes: 9 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- run:
name: lint, typecheck, test, build
command: npx nx run-many --targets=lint,typecheck,test,build --output-style=static
environment:
APP_VERSION: ci
ENVIRONMENT: production
push_backend:
resource_class: large
docker:
Expand Down Expand Up @@ -109,16 +112,15 @@ jobs:
- install-dependencies
- run:
name: build-frontend
command: npx nx build frontend
command: (export APP_VERSION=${CIRCLE_TAG:=stg} && npx nx build frontend)
environment:
ENVIRONMENT: production
- run:
name: move-frontend-build
command: mv packages/frontend/www ./www
- run:
name: set-frontend-version
command: sed -i "s/window.version = \"development\";/window.version = \"${CIRCLE_TAG:=stg}\";/" www/index.html
- run:
name: set-service-worker-version
command: sed -i "s/APP_VERSION = \"development\";/APP_VERSION = \"${CIRCLE_TAG:=stg}\";/" www/service-worker.js
- run:
name: webapp-hosted.sh
command: ./scripts/build/webapp-hosted.sh ${CIRCLE_TAG:=stg}
Expand All @@ -141,16 +143,15 @@ jobs:
- install-dependencies
- run:
name: build-frontend
command: npx nx build:selfhost frontend
command: (export APP_VERSION=${CIRCLE_TAG:=stg} && npx nx build:selfhost frontend)
environment:
ENVIRONMENT: production
- run:
name: move-frontend-build
command: mv packages/frontend/www ./www
- run:
name: set-frontend-version
command: sed -i "s/window.version = \"development\";/window.version = \"${CIRCLE_TAG:=stg}\";/" www/index.html
- run:
name: set-service-worker-version
command: sed -i "s/APP_VERSION = \"development\";/APP_VERSION = \"${CIRCLE_TAG:=stg}\";/" www/service-worker.js
- run:
name: webapp-selfhost.sh
command: ./scripts/build/webapp-selfhost.sh ${CIRCLE_TAG:=stg}
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ services:
ports:
- "8100:8100"
command: npx nx start frontend
environment:
- ENVIRONMENT=development
- APP_VERSION=development
backend:
depends_on:
- postgres
Expand Down
Loading

0 comments on commit 61ea7d7

Please sign in to comment.