test gunicorn
This commit is contained in:
@@ -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
|
### 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
|
# postgres database info
|
||||||
DB_NAME = 'hshop'
|
DB_NAME = 'hshop'
|
||||||
DB_USER = 'byeto'
|
DB_USER = 'byeto'
|
||||||
|
|||||||
+1
-1
@@ -14,4 +14,4 @@ COPY . /app/
|
|||||||
CMD ["sh", "-c", "python manage.py makemigrations && \
|
CMD ["sh", "-c", "python manage.py makemigrations && \
|
||||||
python manage.py migrate && \
|
python manage.py migrate && \
|
||||||
python manage.py collectstatic --no-input && \
|
python manage.py collectstatic --no-input && \
|
||||||
gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 3"]
|
gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 5"]
|
||||||
+1
-1
@@ -24,7 +24,7 @@ services:
|
|||||||
[
|
[
|
||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-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:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
|||||||
Reference in New Issue
Block a user