Skip to content

Commit 35facd5

Browse files
committed
Fix initial setup process
1 parent 69c1ba3 commit 35facd5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

backend/.env/template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DJANGO_ALGOLIA_API_KEY="None"
22
DJANGO_ALGOLIA_APPLICATION_ID="None"
3-
DJANGO_ALLOWED_HOSTS="localhost"
3+
DJANGO_ALLOWED_HOSTS="*"
44
DJANGO_AWS_ACCESS_KEY_ID="None"
55
DJANGO_AWS_SECRET_ACCESS_KEY="None"
66
DJANGO_CONFIGURATION="Test"

docker-compose-staging.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ services:
22
backend:
33
container_name: nest-backend
44
image: arkid15r/owasp-nest-backend:latest
5-
command: |
5+
command: >
66
bash -c "
77
poetry run python manage.py migrate &&
88
poetry run python manage.py collectstatic --noinput &&
9-
poetry run python manage.py run_slack_bot &
10-
poetry run gunicorn wsgi:application --bind 0.0.0.0:8000
9+
poetry run gunicorn wsgi:application --bind 0.0.0.0:8000 &
10+
poetry run python manage.py run_slack_bot;
11+
wait
1112
"
1213
env_file: .env/backend
1314
depends_on:

docker-compose.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ services:
55
bash -c "
66
poetry install --no-root &&
77
poetry run python manage.py migrate &&
8-
poetry run python manage.py run_slack_bot &
9-
poetry run python manage.py runserver 0.0.0.0:8000
8+
poetry run python manage.py runserver 0.0.0.0:8000 &
9+
poetry run python manage.py run_slack_bot;
10+
wait
1011
"
1112
build:
1213
context: ./backend

0 commit comments

Comments
 (0)