Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi-De committed Aug 20, 2024
2 parents 24d69e8 + c1c7127 commit 48e0a28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions {{ cookiecutter.project_name }}/deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ COPY {{ cookiecutter.project_name }} /app/{{ cookiecutter.project_name }}
COPY manage.py /app/manage.py
RUN rm -r /app/{{ cookiecutter.project_name }}/static/

EXPOSE 80
EXPOSE 8000
ENTRYPOINT ["/init"]
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://127.0.0.1:80/health
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://0.0.0.0:8000/health
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/command/with-contenv execlineb

cd /app
python {{ cookiecutter.project_name }}/__main__.py
exec python {{ cookiecutter.project_name }}/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/command/with-contenv execlineb

cd /app
python {{ cookiecutter.project_name }}/__main__.py qcluster
exec python {{ cookiecutter.project_name }}/__main__.py qcluster
1 change: 1 addition & 0 deletions {{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ extend-ignore = ["TID252", "RUF012", "TRY003", "EM101", "I001", "I002"]

[tool.ruff.lint.extend-per-file-ignores]
"deploy/*" = ["INP001"]
"*/__main__.py" = [ "S104" ]
"*/migrations/*" = ["E501"]
"tests/**/*" = ["PLR2004", "S101", "TID252", "ARG001"]
"docs/conf.py" = ["INP001", "A001"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def run_gunicorn(argv: list) -> None:
gunicorn_args = [
"{{ cookiecutter.project_name }}.wsgi:application",
"--bind",
"127.0.0.1:8000",
"0.0.0.0:8000",
# "unix:/run/{{ cookiecutter.project_name }}.gunicorn.sock", # uncomment this line and comment the line above to use a socket file
"--max-requests",
"1000",
Expand Down

0 comments on commit 48e0a28

Please sign in to comment.