Skip to content

Commit

Permalink
refactor: rename app -> main
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Mar 21, 2024
1 parent 7bd5895 commit 8b36a07
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .aws/task_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"essential": true,
"command": [
"uvicorn",
"app:app",
"main:app",
"--host",
"0.0.0.0",
"--port", "80",
Expand Down
2 changes: 1 addition & 1 deletion .aws/task_definition_preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"command": [
"uvicorn",
"app:app",
"main:app",
"--host", "0.0.0.0",
"--port", "80",
"--workers", "6"
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ test:
pytest backend/tests

dev:
docker compose -f docker/docker-compose.dev.yml build backend-core
docker compose -f docker/docker-compose.dev.yml up --build -d
docker compose -f docker/docker-compose.yml build backend-core
docker compose -f docker/docker-compose.yml up --build -d

dev-ps:
docker compose -f docker/docker-compose.dev.yml ps
docker compose -f docker/docker-compose.yml ps

dev-init:
rm -rf docker/volumes/db/data
docker compose -f docker/docker-compose.dev.yml build backend-core
docker compose -f docker/docker-compose.dev.yml up --build
docker compose -f docker/docker-compose.yml build backend-core
docker compose -f docker/docker-compose.yml up --build

prod:
docker compose build backend-core
Expand Down
2 changes: 1 addition & 1 deletion doc/deploy_local.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ make dev-ps
```
docker compose -f docker/docker-compose.dev.yml ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
backend-core backend-base "uvicorn app:app --h…" backend-core 2 hours ago Up 54 seconds 0.0.0.0:5050->5050/tcp
backend-core backend-base "uvicorn main:app --h…" backend-core 2 hours ago Up 54 seconds 0.0.0.0:5050->5050/tcp
realtime-dev.supabase-realtime supabase/realtime:v2.25.66 "/usr/bin/tini -s -g…" realtime 2 hours ago Up 37 seconds (healthy)
redis redis:latest "docker-entrypoint.s…" redis 2 hours ago Up 54 seconds 0.0.0.0:6379->6379/tcp
supabase-analytics supabase/logflare:1.4.0 "sh run.sh" analytics 2 hours ago Up 43 seconds (healthy) 0.0.0.0:4000->4000/tcp
Expand Down
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" -U --no-cach

EXPOSE 80

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80", "--workers", "6"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "6"]
12 changes: 0 additions & 12 deletions server/Dockerfile.dev

This file was deleted.

File renamed without changes.

0 comments on commit 8b36a07

Please sign in to comment.