Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024-11-12 #150

Merged
merged 204 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
324b3b1
use new ECR repo structure
rush42 Sep 30, 2024
c8cb6b4
add unspecified footways with bicycle access to `needsClarification`
rush42 Sep 30, 2024
9a19f76
add category `bikeSuitableSurface`
rush42 Oct 1, 2024
9260b89
add `COMPUTE_DIFFS` in `setup-env.yml` to allow control of diffing vi…
rush42 Oct 1, 2024
4900cb4
tighten category `bikeSuitableSurface`
rush42 Oct 1, 2024
d7ba26e
also restart martin when cache warming is disabled
rush42 Oct 1, 2024
f7d4bbc
add `protectedCyclewayOnHighway` category
rush42 Oct 1, 2024
a539c0c
move `implicitOneWay` information to the `bikelanCategory` class
rush42 Oct 1, 2024
80223df
BB: Document mbtiles for maptiler
tordans Sep 30, 2024
e840385
MapRoulette: Refactor variable name
tordans Oct 2, 2024
3407363
MapRoulette: Fix conditions for "no traffic sign"
tordans Oct 2, 2024
8a57183
Move `implicitOneWay` Information to the `bikelanCategory` class (#149)
rush42 Oct 2, 2024
6db91f3
Add `browserlist` with older IE and Edge versions
tordans Oct 2, 2024
673c14f
add category `bikeSuitableNoVehicle`
rush42 Oct 2, 2024
911ad16
PBL: define `physicalSeparations` explicitly
rush42 Oct 2, 2024
bc3f1ed
add comments to `implicitOneWay`
rush42 Oct 2, 2024
5ba7eeb
`bikelaneCategory`: make all fields mandatory
rush42 Oct 3, 2024
61a1bb4
update tests
rush42 Oct 3, 2024
22c6485
remove category: `explicitSharedLaneButNoSignage`
rush42 Oct 7, 2024
706434e
add `BikelaneTodo` for `cycleway=shared`
rush42 Oct 7, 2024
acfee69
fix TODO `deprecated_cycleway_shared`
rush42 Oct 7, 2024
16dd97d
add TODO: `unexpected_bicycle_access_on_footway`
rush42 Oct 7, 2024
82fd4dd
add bikelane category: `sharedLaneNoOvertaking`
rush42 Oct 7, 2024
b656d20
refine `directedTags`
rush42 Oct 7, 2024
83e68f3
refine `directedKeys`: project keys from sides that are directed
rush42 Oct 7, 2024
82d7432
BB Notes: Fix wording
tordans Oct 7, 2024
2e2af9b
Next: Improve naming of pages
tordans Oct 7, 2024
4e5daa1
Admin: Improve HTML
tordans Oct 7, 2024
988d2cc
add comments to explain directed tag projection
rush42 Oct 7, 2024
ea9e587
refactor: `unnestTags` -> `unnestPrefixedTags`
rush42 Oct 8, 2024
95dab03
extract function `convertDirectedTags`
rush42 Oct 8, 2024
785213c
add class `CenterLineTransformation`
rush42 Oct 8, 2024
765d442
fix tab
rush42 Oct 8, 2024
d772825
refine bikelane categories for "angstweiche" und "abbiegestreifen"
rush42 Oct 8, 2024
03ff3f1
base `bicycleRoad_vehicleDestination` on `bicycleRoad`
rush42 Oct 8, 2024
82ca2b5
replace `IsTermInString()` -> `ContainsSubstring()`
rush42 Oct 8, 2024
b1e2270
move `bikeSuitability*` categories to `roads`
rush42 Oct 9, 2024
e62212c
fix: `cylewayBetweenLanes` right side beeing classified as `needsClar…
rush42 Oct 9, 2024
af86d42
add test for "angstweiche"
rush42 Oct 14, 2024
424a80b
add test for `protectedCyclewayOnHighway`
rush42 Oct 14, 2024
cc96b1b
fix indentation
rush42 Oct 14, 2024
6cf3672
fix parameter of `convertDirectedTags()`
rush42 Oct 14, 2024
7552c90
add tests for `transformations.lua`
rush42 Oct 14, 2024
aed4f67
fix nesting
rush42 Oct 14, 2024
206e48f
fix tag: `motorized_vehicles` -> `motor_vehicle`
rush42 Oct 14, 2024
ff5ee9f
add tests for `BikeSuitability`
rush42 Oct 14, 2024
12bb1e6
Blitz: Add `Suspense` wrapper to resolve initial error 500
tordans Oct 14, 2024
e33c747
Scripts: Expand `docker:cleanup`
tordans Oct 15, 2024
c1c1a19
.env: Cleanup string formatting
tordans Oct 15, 2024
66a18b6
Update packages
tordans Oct 15, 2024
23d5f02
Packages: Update turf, types for turf
tordans Oct 15, 2024
8fefe42
Config: Update absolute path config to fix vitest
tordans Oct 16, 2024
022aff9
API: config disableResponseLimit
tordans Oct 15, 2024
e0c9bb9
API: Log errors on production
tordans Oct 15, 2024
3d4e430
Server: (Maybe) add server source maps
tordans Oct 16, 2024
db52cdd
Update packages (again)
tordans Oct 16, 2024
0d30072
Config: Re-add `baseUrl` to fix bun/node file resolving
tordans Oct 16, 2024
25e71da
Prettier: Add class key to detection
tordans Oct 16, 2024
dd1fdeb
Download Modal: Improve wording and styling
tordans Oct 16, 2024
4a46ac6
Export: Migrate to app directory; Improve error handling
tordans Oct 16, 2024
ab4a769
Prettier autoformatting
tordans Oct 16, 2024
1d7de90
API: Improve typing for util
tordans Oct 16, 2024
91e06cd
Export: Improve error logging
tordans Oct 16, 2024
20bf956
add cach warming to `regions.const`
rush42 Oct 15, 2024
230aed8
make logging hook green and bold
rush42 Oct 15, 2024
0798f70
add `warmCache` endpoint to private api
rush42 Oct 16, 2024
8fa7460
replace old cache warming by new api endpoint
rush42 Oct 16, 2024
6cd5804
remove hardcoded url
rush42 Oct 16, 2024
609c0c6
refine logging
rush42 Oct 16, 2024
ec8c465
less verbose logging
rush42 Oct 16, 2024
467bc7b
cachwarming for germany
rush42 Oct 16, 2024
1f7d946
parallelize cach warmings across regions
rush42 Oct 16, 2024
f3b5500
logging: create padding with bash
rush42 Oct 16, 2024
ab8fbd4
use `zod.safeParse`
rush42 Oct 16, 2024
8e95b37
dont export local types
rush42 Oct 16, 2024
c5e7d07
parallize tile requests
rush42 Oct 16, 2024
1013bbe
update cache warming conf
rush42 Oct 16, 2024
df82059
improve curl commands: silent with falgs and output parameter
rush42 Oct 16, 2024
68dd220
don't aggregate promises, as we don't need the results
rush42 Oct 17, 2024
916428e
extend to union tiles
rush42 Oct 17, 2024
9b4d642
don't parallelize over tiles
rush42 Oct 17, 2024
c9d8c10
add `regionSlug` to cache warming log
rush42 Oct 17, 2024
74ab1f9
Refactor Cache Warming (#151)
rush42 Oct 17, 2024
6443e06
don't parallelize cach warming over regions
rush42 Oct 17, 2024
e3f44c5
return promises to aggregate them properly
rush42 Oct 17, 2024
b15e4c9
imporve padding in cache warming logs
rush42 Oct 17, 2024
a3804c5
parallelize over regions to make endpoint non blocking
rush42 Oct 17, 2024
77454f2
make endpoint non blocking but warm regions sequentially
rush42 Oct 17, 2024
195507e
Navigation: Make Login Links more prominent
tordans Oct 18, 2024
48302d4
Navigation: Make "no permissions" more prominent
tordans Oct 18, 2024
dbc050d
extract key check logic inot `guardEndpoint` helper
rush42 Oct 18, 2024
7c1c79f
move analysis to atlas-app
rush42 Oct 18, 2024
54968d1
output psql logs to stderr on develop
rush42 Oct 21, 2024
2dd2b59
don't calculate lengths, use tags->'length' instead
rush42 Oct 21, 2024
246e31f
Remove open traefik API Port
ohrie Oct 21, 2024
6615b47
save analysis into `bikelaneCategoryLengths`
rush42 Oct 21, 2024
9e9f0be
Add Cache-Warming doc
ohrie Oct 21, 2024
033ea59
Update docker image to PostGIS 3.4
ohrie Oct 21, 2024
d6b3665
Tilesets: Update script to use Flatgeobuf with larger area
tordans Oct 21, 2024
d93e8d1
MapStyle: Update bridge, tunnel style
tordans Oct 21, 2024
acb7966
MapStyles: Show new `protectedCyclewayOnHighway` category
tordans Oct 21, 2024
95b8735
Packages: Update minor version including Blitz
tordans Oct 22, 2024
cbde135
BB: Disable Custom OSM Notes feature for now
tordans Oct 22, 2024
148a772
remove `registerCustomFunction`: define functions where they are bein…
rush42 Oct 21, 2024
910a817
remove deprecated license information
rush42 Oct 21, 2024
7804976
add logging to analysis
rush42 Oct 21, 2024
cd36712
logging: make circle bold
rush42 Oct 21, 2024
ed61db5
remove deprecated tables from `presenceStats`
rush42 Oct 21, 2024
029371d
add SRID and Index to `bikelaneCategoryLengths`
rush42 Oct 21, 2024
8fca6a4
add `street_length` to analysis
rush42 Oct 21, 2024
fc7c917
analysis handle oneways for bikelanes
rush42 Oct 22, 2024
bfe89f6
unify logic for aggregating `bikelanes` and `roads` lengths
rush42 Oct 22, 2024
39199ef
rename: `runAnalysis` -> `aggregateLengths`
rush42 Oct 22, 2024
eccb93f
analysis: naming and group queries in transactions
rush42 Oct 22, 2024
ea682f1
add elapsed seconds to analysis logging
rush42 Oct 22, 2024
59cbc5a
extract analysis from the instrumentation hook and invoke it from `/p…
rush42 Oct 22, 2024
ade36e9
streamline cach warming logging with analysis
rush42 Oct 22, 2024
4e14ebb
extract logic from `instrumentation.ts` to `registerSQLFunctions`
rush42 Oct 22, 2024
ba8a382
rename endpoint: `private/refresh` -> `private/post-processing-hook`
rush42 Oct 22, 2024
373b28e
rename folder: `src/instrumentation` -> `src/registerSQLFunctions`
rush42 Oct 22, 2024
1ca3a05
count street oneways just once
rush42 Oct 22, 2024
10aecb4
rename: `greenHook` -> `greenCheckmark`
rush42 Oct 23, 2024
ca00d83
return `registerSQLFunctions` promise in `instrumentation.ts`
rush42 Oct 23, 2024
ccafde4
add comment
rush42 Oct 23, 2024
785c570
update README.md
rush42 Oct 23, 2024
0bf8b45
Move Analysis to `/app` (#152)
rush42 Oct 23, 2024
b8d1d2b
update comment
rush42 Oct 23, 2024
fb1105c
logging: fix casing
rush42 Oct 23, 2024
7095dc6
fix synology logging: fix curl flag
rush42 Oct 23, 2024
6be8465
instrumentation: import modules after runtime check
rush42 Oct 23, 2024
7708512
add prisma migrate to `app` cmd
rush42 Oct 23, 2024
d994cc4
pointFromGeometry: Fix invalid Polygon case
tordans Oct 22, 2024
28c3846
pointFromGeometry: Fix MultiPolygon case
tordans Oct 22, 2024
afa4fe9
Bikelanes: Improve MapRoulette tasks in Inspector; Add `unexpected_bi…
tordans Oct 23, 2024
6b04bd3
Update packages minor versions (NextJS)
tordans Oct 23, 2024
90deb63
build: Silence Eslint error in layout on `useAuthenticatedBlitzContext`
tordans Oct 23, 2024
359e31c
Update code comments
tordans Oct 23, 2024
aead80e
Cleanup unused hook
tordans Oct 24, 2024
ab248ee
Sources: Always use SIMPLIFY_MAX_ZOOM for atlas sources
tordans Oct 22, 2024
fa91a86
Docs: Document vector tiles minzoom maxzoom setup
tordans Oct 24, 2024
d6461e1
Generalization: Move config into function
tordans Oct 24, 2024
96b4cf8
Generalization: Introduce `SIMPLIFY_MIN_ZOOM`
tordans Oct 24, 2024
f67988f
extract `bikeSuitability` into a dedicated table
rush42 Oct 23, 2024
03e07fd
bikeSuitability: More properties
tordans Oct 24, 2024
ced5f7e
bikeSuitability: Add livingStreet
tordans Oct 24, 2024
aa14264
bikeSuitability: Deprecate `roads.category=livingStreet`
tordans Oct 24, 2024
ed0ad53
bikeSuitability: Add source and layer
tordans Oct 23, 2024
e61ccfa
bikeSuitability: Add new category to config
tordans Oct 24, 2024
e834060
bikeSuitability: Add Inspector
tordans Oct 24, 2024
b48d07e
bikeSuitability: Add traffic sign tag
tordans Oct 24, 2024
ebb5f08
bikeSuitability: Add legend
tordans Oct 24, 2024
f20b1f2
wati-for-fresh-data: wait up to 4 hours
rush42 Oct 28, 2024
62dd138
run analysis for `admin_level` 6 and 8
rush42 Oct 28, 2024
d3c154d
don't wait for `registerSQLFunctions()` in `post-processing-hook`
rush42 Oct 28, 2024
ce33b73
Update docker build push workflow version
ohrie Oct 29, 2024
b7e0e68
include `admin_level` as `level` into `aggregate_lengths`
rush42 Oct 28, 2024
aa9e727
create a new stats page
rush42 Oct 23, 2024
c3d21df
include prisma generated types
rush42 Oct 23, 2024
2170118
copy prisma sql types to Dockerfile
rush42 Oct 23, 2024
5832816
use blitz rpc for stats page
rush42 Oct 23, 2024
c4394f7
add `level` column to `getAllStatistics` query
rush42 Oct 28, 2024
ec2a471
add `level` to stats page
rush42 Oct 28, 2024
4aae614
sort stats by level
rush42 Oct 28, 2024
23b5812
stats page: move download button to top
rush42 Oct 28, 2024
11e60af
stats page: define type in function signature
rush42 Oct 28, 2024
24f4485
create dedicated schema for backups
rush42 Oct 7, 2024
7b74ec9
Remove lightsail vestige from github actions
ohrie Oct 29, 2024
2601709
remove typed queries and resort to `queryRaw`
rush42 Oct 29, 2024
70efeda
stats endpoint: return error message when not on production
rush42 Oct 29, 2024
d57bd4d
Add `/regions/stats` page (#153)
rush42 Oct 29, 2024
e7e5289
BikelaneTodos: Broaden deprecated_cycleway_shared
tordans Oct 29, 2024
2b2ed99
StaticData: Extract `import_` util
tordans Oct 30, 2024
8b2ac67
StaticData: Improve log utils
tordans Oct 30, 2024
fdad287
StaticData: Add `npm run updateWfsSources` with helper to fetch data …
tordans Oct 30, 2024
91ddde0
StaticData: Add empty `folder-filter` for easier access
tordans Oct 30, 2024
5429ac9
StaticData: Rework WFS fetch to use Geopackage, transform to GeoJSON …
tordans Oct 30, 2024
2499884
StaticData: Add category for Berlin "netz"
tordans Oct 30, 2024
7055452
make use of dedicated schema in `FREEZE_DATA`
rush42 Oct 9, 2024
5ebdc6e
copy table between schemas instead of moving it
rush42 Oct 29, 2024
138fb72
decrease psql log level to avoid forwarding to `/dev/null`
rush42 Oct 29, 2024
e1430c7
create `backup` schema in `porcess-helpers` so we can drop it on demand
rush42 Oct 31, 2024
cb2df86
Bikelanes: Hide bike suitability by default
tordans Oct 31, 2024
92395dc
Refactor Diffing (#154)
rush42 Oct 31, 2024
201d878
Regions: Add radinframap
tordans Nov 1, 2024
5feba1b
Bikelanes: Hide bike suitability by default – update configs
tordans Nov 1, 2024
226fce3
Regions: Add radinframap - disable download
tordans Nov 1, 2024
ba47b25
generalization: clearer variable name + correct SIMPLIFY_MIN_ZOOM val…
rush42 Nov 5, 2024
81bbf3c
StaticData: Reduce precision for WFS files
tordans Nov 5, 2024
02acc14
StaticData: Run prettier per file
tordans Nov 5, 2024
3c521c9
Processing: Improve preview link
tordans Nov 7, 2024
36908fe
Bikelanes: Refactor conditions to simple `return true` sections
tordans Nov 7, 2024
3aa5775
Bikelanes: Refactor `return false` to wrapper
tordans Nov 7, 2024
b123434
Bikelanes: Fix type in category name
tordans Nov 7, 2024
66218d5
Bikelanes: Add new case with `traffic_mode:right`
tordans Nov 7, 2024
b4fcbd3
Bikelanes: Improve traffic_mode lookup
tordans Nov 7, 2024
efe90c8
Bikelanes: Remove `.conditions`
tordans Nov 7, 2024
4fa498b
Bikelanes: Improve `missing_traffic_sign` by also looking at forward/…
tordans Nov 7, 2024
a7fe3a6
Processing: Update how to run tests locally
tordans Nov 7, 2024
f008267
Bikelanes: Improve traffic_mode lookup, add tests
tordans Nov 7, 2024
389b49e
Processing: Make the test run cleanup the container right away
tordans Nov 7, 2024
5b1092f
Sources: Add `promoteId` to Mapillary
tordans Nov 11, 2024
3956b80
update docs: clearify `FREEZE_DATA` and `SKIP_UNCHANGED`
rush42 Nov 11, 2024
0311225
Region: radinfra.de
tordans Nov 11, 2024
6e7f92b
Bikelanes: Rename category "(Beta)"
tordans Nov 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ ENVIRONMENT=development
DATABASE_HOST=db
DATABASE_USER=postgres
DATABASE_NAME=postgres
DATABASE_PASSWORD='mysecretpassword'
DATABASE_PASSWORD=mysecretpassword
DATABASE_PORT=5432

# Application flags
OSM_DOWNLOAD_URL='http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf'
OSM_DOWNLOAD_URL=http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
SKIP_DOWNLOAD=1 # skips the download if a file already exists
SKIP_UNCHANGED=1 # skips processing of unchanged code
SKIP_TAG_FILTER=0 # skips tag filtering
Expand All @@ -38,8 +38,8 @@ SYNOLOGY_ERROR_LOG_TOKEN=

# NEXTJS
NEXT_PUBLIC_APP_ORIGIN=http://127.0.0.1:5173
NEXT_PUBLIC_APP_ENV='development' # 'staging', 'production'
SESSION_SECRET_KEY='12345678901234567890123456789012'
NEXT_PUBLIC_APP_ENV=development # staging, production
SESSION_SECRET_KEY=12345678901234567890123456789012

# MAP API KEYS (See Bitwarden "Atlas Secrets")
# Source: https://account.mapbox.com/access-tokens/cl7079ubp09vs3osbzaovy3ge
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Upgrade AWS CLI version and setup lightsailctl
- name: Upgrade AWS CLI version
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
sudo curl "https://s3.us-west-2.amazonaws.com/lightsailctl/latest/linux-amd64/lightsailctl" -o "/usr/local/bin/lightsailctl"
sudo chmod +x /usr/local/bin/lightsailctl

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -54,7 +52,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build app image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./app.Dockerfile
context: ./
Expand All @@ -63,8 +61,8 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
public.ecr.aws/n0p8j4k5/atlas/blitz:${{ github.sha }}
public.ecr.aws/n0p8j4k5/atlas/blitz:${{ inputs.ENVIRONMENT }}-latest
public.ecr.aws/n0p8j4k5/atlas/app:${{ github.sha }}
public.ecr.aws/n0p8j4k5/atlas/app:${{ inputs.ENVIRONMENT }}-latest
build-args: |
NEXT_PUBLIC_APP_ENV=${{ inputs.NEXT_PUBLIC_APP_ENV }}
NEXT_PUBLIC_APP_ORIGIN=${{ inputs.NEXT_PUBLIC_APP_ORIGIN }}
Expand All @@ -73,7 +71,7 @@ jobs:
- name: Push image
run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/n0p8j4k5/
docker push --all-tags public.ecr.aws/n0p8j4k5/atlas/blitz
docker push --all-tags public.ecr.aws/n0p8j4k5/atlas/app
restart_app:
runs-on: ubuntu-latest
needs: [diff_app, build_app]
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/deploy-processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Upgrade AWS CLI version and setup lightsailctl
- name: Setup AWS CLI
run: |
aws --version
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
which aws
aws --version
sudo curl "https://s3.us-west-2.amazonaws.com/lightsailctl/latest/linux-amd64/lightsailctl" -o "/usr/local/bin/lightsailctl"
sudo chmod +x /usr/local/bin/lightsailctl

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -49,7 +47,7 @@ jobs:
- name: Setup buildx
uses: docker/setup-buildx-action@v3

- name: Build app image
- name: Build processing image
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -59,13 +57,13 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
public.ecr.aws/n0p8j4k5/atlas/app:${{ github.sha }}
public.ecr.aws/n0p8j4k5/atlas/app:${{ inputs.ENVIRONMENT }}-latest
public.ecr.aws/n0p8j4k5/atlas/processing:${{ github.sha }}
public.ecr.aws/n0p8j4k5/atlas/processing:${{ inputs.ENVIRONMENT }}-latest

- name: Push the app image
- name: Push the processing image
run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/n0p8j4k5/
docker push --all-tags public.ecr.aws/n0p8j4k5/atlas/app
docker push --all-tags public.ecr.aws/n0p8j4k5/atlas/processing
restart_processing:
runs-on: ubuntu-latest
needs: [diff_processing, build_processing]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/generate-tiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
cd /srv/
export WAIT_FOR_FRESH_DATA=1
export SKIP_DOWNLOAD=0
export COMPUTE_DIFFS=0
docker compose down processing
docker compose up -d processing
unset WAIT_FOR_FRESH_DATA
unset SKIP_DOWNLOAD
unset COMPUTE_DIFFS
5 changes: 3 additions & 2 deletions .github/workflows/setup-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
source: "docker-compose.yml, docker-compose.network.yml, configs, .env.example, psql_shell.sh"
target: "/srv"
source: 'docker-compose.yml, docker-compose.network.yml, configs, .env.example, psql_shell.sh'
target: '/srv'
overwrite: true

- name: Stop & Start container on Server
Expand Down Expand Up @@ -79,4 +79,5 @@ jobs:
-e "s|^S3_BUCKET=.*$|S3_BUCKET='${{ secrets.S3_BUCKET }}'|" \
-e "s|^SKIP_DOWNLOAD=.*$|SKIP_DOWNLOAD='${{ vars.SKIP_DOWNLOAD }}'|" \
-e "s|^SKIP_UNCHANGED=.*$|SKIP_UNCHANGED='${{ vars.SKIP_UNCHANGED }}'|" \
-e "s|^COMPUTE_DIFFS=.*$|COMPUTE_DIFFS='${{ vars.COMPUTE_DIFFS }}'|" \
.env
2 changes: 1 addition & 1 deletion app.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

RUN npx [email protected] build

CMD npx [email protected] prisma migrate deploy && npx [email protected] start -p 4000

Check warning on line 24 in app.Dockerfile

View workflow job for this annotation

GitHub Actions / deploy_app / build_app

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/

# From here on we are building the production image
FROM base AS production

RUN npm install --global pm2

CMD exec pm2-runtime node -- ./node_modules/next/dist/bin/next start -p 4000
CMD npx [email protected] prisma migrate deploy && exec pm2-runtime node -- ./node_modules/next/dist/bin/next start -p 4000

Check warning on line 31 in app.Dockerfile

View workflow job for this annotation

GitHub Actions / deploy_app / build_app

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
2 changes: 1 addition & 1 deletion app/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"arrowParens": "always",
"printWidth": 100,
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"],
"tailwindAttributes": ["positionClasses"],
"tailwindAttributes": ["positionClasses", "classNameOverwrite"],
"tailwindFunctions": ["twMerge", "clsx", "twJoin"]
}
2 changes: 1 addition & 1 deletion app/db/seeds/bikelaneVerification.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VerificationSchema } from 'src/bikelane-verifications/schemas'
import { VerificationSchema } from '@/src/bikelane-verifications/schemas'
import { z } from 'zod'
import db from '../index'

Expand Down
8 changes: 8 additions & 0 deletions app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ module.exports = withBlitz(
},
],
},
// Source Maps on the Server
// Via https://www.highlight.io/blog/lw5-next-js-server-sourcemaps
webpack: (config, { isServer }) => {
if (isServer) {
config.devtool = 'source-map'
}
return config
},
redirects: async () => [
// https://stackoverflow.com/a/70184067
{
Expand Down
Loading