Skip to content

Commit

Permalink
Slight adjustments to dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Oct 5, 2024
1 parent fd3095d commit fed6dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ WORKDIR /opt/services/open5e-api
# install our dependencies
RUN pip install pipenv
COPY . /opt/services/open5e-api
RUN pipenv install --system --deploy
RUN pipenv install --deploy

# migrate the db, load content, and index it
RUN python manage.py quicksetup
RUN pipenv run python manage.py quicksetup

# remove .env file (set your env vars via docker-compose.yml or your hosting provider)
RUN rm .env

#run gunicorn.
CMD ["gunicorn","-b", ":8888", "server.wsgi:application"]
CMD ["pipenv", "run", "gunicorn","-b", ":8888", "server.wsgi:application"]
2 changes: 1 addition & 1 deletion server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
assert "SECRET_KEY" in os.environ, "Set SECRET_KEY in your .env file!"
assert "SECRET_KEY" in os.environ, "Set SECRET_KEY in your .env or local OS!"
SECRET_KEY = os.environ["SECRET_KEY"]

# SECURITY WARNING: don't run with debug turned on in production!
Expand Down

0 comments on commit fed6dc2

Please sign in to comment.