Skip to content

Commit

Permalink
make migrations on dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dori-dev committed Mar 24, 2023
1 parent 10c4f14 commit 1dc41d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM hub.hamdocker.ir/library/python:3.8
ADD ./ ./
RUN pip3 install -r requirements.txt
WORKDIR /src/
ENTRYPOINT ["/bin/sh", "-c" , "python manage.py migrate && gunicorn --bind 0.0.0.0:8000 --access-logfile - config.wsgi"]
ENTRYPOINT ["/bin/sh", "-c" , "python manage.py makemigrations && python manage.py migrate && gunicorn --bind 0.0.0.0:8000 --access-logfile - config.wsgi"]
1 change: 0 additions & 1 deletion src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def main():
"You can rename .env.example file to .env and "
"set your environ variable in it."
)
return
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
try:
from django.core.management import execute_from_command_line
Expand Down

0 comments on commit 1dc41d8

Please sign in to comment.