diff --git a/backend/.env.local b/backend/.env.local index e0f9789..9f27c2c 100644 --- a/backend/.env.local +++ b/backend/.env.local @@ -1,6 +1,4 @@ ### keep the env name to .env.local if you want to change this .env name you should change it in django setting too when you load this env - -DEBUG = True # keep debug true to set the database to sqlite # postgres database info DB_NAME = 'hshop' DB_USER = 'byeto' diff --git a/backend/dockerfile b/backend/dockerfile index b86405d..a02ce9e 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -14,4 +14,4 @@ COPY . /app/ CMD ["sh", "-c", "python manage.py makemigrations && \ python manage.py migrate && \ python manage.py collectstatic --no-input && \ - gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 3"] \ No newline at end of file + gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 5"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5972767..86939c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: [ "sh", "-c", - "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 10", + "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 5", ] networks: - default