Skip to content

Commit

Permalink
Simplify configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Aug 8, 2023
1 parent bb83c6a commit 9993137
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
git reset --hard origin/dev
echo "Building and starting containers"
LISTEN=49223 WORKERS=6 docker-compose -f docker-compose.prod.yml -p prod_develop up -d --build
LISTEN=49223 WORKERS=6 docker-compose up -d --build
EOF
2 changes: 1 addition & 1 deletion .github/workflows/deploy-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
git reset --hard origin/main
echo "Building and starting containers"
LISTEN=49222 docker-compose -f docker-compose.prod.yml -p prod up -d --build
LISTEN=49222 docker-compose -f docker-compose.prod.yml up -d --build
EOF
2 changes: 1 addition & 1 deletion docker-compose.prod.yml → docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
restart: unless-stopped
command:
[
"pipenv run uvicorn main:app --host 0.0.0.0 --workers ${WORKERS:-16} --timeout-keep-alive 300 --timeout-graceful-shutdown 5 --no-server-header",
"pipenv run uvicorn main:app --host 0.0.0.0 --workers ${WORKERS:-16} --timeout-keep-alive 300 --timeout-graceful-shutdown 5",
]

depends_on:
Expand Down
3 changes: 2 additions & 1 deletion states/aed_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ async def _assign_country_codes(aeds: Sequence[AED]) -> None:
{'id': aed.id},
{'$set': {'country_codes': tuple(id_codes_map[aed.id])}}))

await AED_COLLECTION.bulk_write(bulk_write_args, ordered=False)
if bulk_write_args:
await AED_COLLECTION.bulk_write(bulk_write_args, ordered=False)


def _process_overpass_node(node: dict) -> AED:
Expand Down

0 comments on commit 9993137

Please sign in to comment.