Skip to content

Commit

Permalink
Fix initial setup process
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 22, 2024
1 parent 69c1ba3 commit 35facd5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/.env/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DJANGO_ALGOLIA_API_KEY="None"
DJANGO_ALGOLIA_APPLICATION_ID="None"
DJANGO_ALLOWED_HOSTS="localhost"
DJANGO_ALLOWED_HOSTS="*"
DJANGO_AWS_ACCESS_KEY_ID="None"
DJANGO_AWS_SECRET_ACCESS_KEY="None"
DJANGO_CONFIGURATION="Test"
Expand Down
7 changes: 4 additions & 3 deletions docker-compose-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ services:
backend:
container_name: nest-backend
image: arkid15r/owasp-nest-backend:latest
command: |
command: >
bash -c "
poetry run python manage.py migrate &&
poetry run python manage.py collectstatic --noinput &&
poetry run python manage.py run_slack_bot &
poetry run gunicorn wsgi:application --bind 0.0.0.0:8000
poetry run gunicorn wsgi:application --bind 0.0.0.0:8000 &
poetry run python manage.py run_slack_bot;
wait
"
env_file: .env/backend
depends_on:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ services:
bash -c "
poetry install --no-root &&
poetry run python manage.py migrate &&
poetry run python manage.py run_slack_bot &
poetry run python manage.py runserver 0.0.0.0:8000
poetry run python manage.py runserver 0.0.0.0:8000 &
poetry run python manage.py run_slack_bot;
wait
"
build:
context: ./backend
Expand Down

0 comments on commit 35facd5

Please sign in to comment.