diff --git a/.docker-compose.yaml b/.docker-compose.yaml index a55d3d9..796fe7d 100644 --- a/.docker-compose.yaml +++ b/.docker-compose.yaml @@ -3,8 +3,8 @@ version: '3' services: web: build: . - command: bash -c "python manage.py migrate && echo \"from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@gmail.com', 'password_secret')\" | python manage.py shell && python manage.py runserver 0.0.0.0:8000" + command: ./entrypoint.sh volumes: - .:/code ports: - - "8000:8000" + - "8000:8000" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4344ae5..563450e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,3 +10,4 @@ ADD pyproject.toml poetry.lock /code/ RUN pip install poetry && poetry config virtualenvs.create false && poetry install --no-dev ADD . /code/ +RUN chmod +x /code/entrypoint.sh \ No newline at end of file diff --git a/albercan_backend/templates/navbar.html b/albercan_backend/templates/navbar.html index 0800ebd..c15d4cd 100644 --- a/albercan_backend/templates/navbar.html +++ b/albercan_backend/templates/navbar.html @@ -25,7 +25,7 @@ Testimonios