Skip to content
Snippets Groups Projects
Commit 3810b83b authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Use arkindex entrypoint

parent d3cfc458
No related branches found
No related tags found
1 merge request!2257Fix Docker image to run in healthy mode
This commit is part of merge request !2257. Comments created here will be created in the context of that merge request.
......@@ -28,4 +28,4 @@ ENV DJANGO_SETTINGS_MODULE "arkindex.project.settings"
# Run with Gunicorn
EXPOSE $PORT
CMD django-admin gunicorn --host=0.0.0.0 --port $PORT
CMD arkindex gunicorn --host=0.0.0.0 --port $PORT
......@@ -2,7 +2,8 @@
import os
import sys
if __name__ == "__main__":
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "arkindex.project.settings")
try:
from django.core.management import execute_from_command_line
......@@ -20,3 +21,8 @@ if __name__ == "__main__":
)
raise
execute_from_command_line(sys.argv)
if __name__ == "__main__":
sys.stderr.write("WARNING: manage.py is deprecated, you should use the `arkindex` script instead\n")
main()
......@@ -41,6 +41,7 @@ setup(
packages=find_packages(),
include_package_data=True,
py_modules=["arkindex", ],
entry_points={"console_scripts": ["arkindex=arkindex.manage:main"]},
scripts=[
"arkindex/manage.py",
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment