Skip to content

Commit

Permalink
Fix deploy command for prd
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Jul 30, 2023
1 parent f0348c2 commit a1e1bf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ ADD poetry.toml pyproject.toml poetry.lock ./
RUN poetry install ${POETRY_INSTALL_ARGS}

ADD . .

CMD ["./scripts/cmd_dev.sh"]
4 changes: 1 addition & 3 deletions api/scripts/cmd_prd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

set -ex

cd src

./manage.py migrate
./m.sh migrate
gunicorn beta_spray.wsgi -b :8000
2 changes: 2 additions & 0 deletions deploy/helm/templates/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
containers:
- name: api
image: "ghcr.io/lucaspickering/beta-spray-api:{{ .Values.versionSha }}"
command:
- ./scripts/cmd_prd.sh
resources:
requests:
cpu: 50m
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:

api:
build: ./api/
command: ./scripts/cmd_dev.sh
init: true # Fixes slow shutdown
tty: true # Colors!
environment:
Expand Down

0 comments on commit a1e1bf3

Please sign in to comment.