vivek1192 commited on
Commit
7c19daf
·
1 Parent(s): 485075a

Switch to runserver and remove app_port for debugging

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. README.md +1 -1
Dockerfile CHANGED
@@ -43,4 +43,5 @@ RUN python manage.py collectstatic --noinput
43
  EXPOSE 7860
44
 
45
  # Run Gunicorn
46
- CMD ["gunicorn", "detect_backend.wsgi:application", "--bind", "0.0.0.0:7860"]
 
 
43
  EXPOSE 7860
44
 
45
  # Run Gunicorn
46
+ # Run Django Dev Server (More reliable for debugging HF Spaces)
47
+ CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🕵️
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: docker
7
- app_port: 7860
8
  pinned: false
9
  ---
10
 
 
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: docker
7
+
8
  pinned: false
9
  ---
10