diff --git a/docker-compose.yml b/docker-compose.yml index 7c19bfe6..49a3f830 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: build: ./ restart: always ports: - - "8000:3031" + - "8000:8000" environment: DB_HOST: db DB_PORT: 3306 diff --git a/requirements.txt b/requirements.txt index 06714cde..b9783c66 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ django-extensions==3.1.3 jinja2==2.11.3 PyMySQL==1.0.2 yolk==0.4.3 -uwsgi==2.0.20 +gunicorn==20.1.0 diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 39228d4c..508a1b87 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -41,21 +41,10 @@ function start_server() { if [ $r_flag == 0 ]; then - uwsgi --http-socket 0.0.0.0:3031 \ - --module agagd.wsgi \ - --static-map /static=/tmp/static/ \ - --static-map /media=/srv/media \ - --enable-threads \ - --python-autoreload 1 \ - --processes 2 + python manage.py runserver 0.0.0.0:8000 elif [ $r_flag == 1 ]; then - uwsgi --http-socket 0.0.0.0:3031 \ - --module agagd.wsgi \ - --static-map /static=/tmp/static/ \ - --static-map /media=/srv/media - --enable-threads \ - --processes 2 + gunicorn -b 0.0.0.0:8000 agagd.wsgi fi }