From 6cefe2b9dca692985638845b6188f139a61ca768 Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Mon, 21 May 2018 22:28:18 +0300 Subject: [PATCH] Rename gunicorn script to start --- .../compose/production/django/Dockerfile | 10 +++++----- .../compose/production/django/{gunicorn => start} | 0 {{cookiecutter.project_slug}}/production.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename {{cookiecutter.project_slug}}/compose/production/django/{gunicorn => start} (100%) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 04ac0d55e..bcebd4b59 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -19,15 +19,15 @@ COPY ./requirements /requirements RUN pip install --no-cache-dir -r /requirements/production.txt \ && rm -rf /requirements -COPY ./compose/production/django/gunicorn /gunicorn -RUN sed -i 's/\r//' /gunicorn -RUN chmod +x /gunicorn -RUN chown django /gunicorn - COPY ./compose/production/django/entrypoint /entrypoint RUN sed -i 's/\r//' /entrypoint RUN chmod +x /entrypoint RUN chown django /entrypoint + +COPY ./compose/production/django/start /start +RUN sed -i 's/\r//' /start +RUN chmod +x /start +RUN chown django /start {% if cookiecutter.use_celery == "y" %} COPY ./compose/production/django/celery/worker/start /start-celeryworker RUN sed -i 's/\r//' /start-celeryworker diff --git a/{{cookiecutter.project_slug}}/compose/production/django/gunicorn b/{{cookiecutter.project_slug}}/compose/production/django/start similarity index 100% rename from {{cookiecutter.project_slug}}/compose/production/django/gunicorn rename to {{cookiecutter.project_slug}}/compose/production/django/start diff --git a/{{cookiecutter.project_slug}}/production.yml b/{{cookiecutter.project_slug}}/production.yml index 51c896275..c76197513 100644 --- a/{{cookiecutter.project_slug}}/production.yml +++ b/{{cookiecutter.project_slug}}/production.yml @@ -17,7 +17,7 @@ services: env_file: - ./.envs/.production/.django - ./.envs/.production/.postgres - command: /gunicorn + command: /start postgres: build: