Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
How to run gunicorn from 1 folder above manage.py

My folder structure is completely messed up but I am trying to load my django project on to a docker image for the first time and its failing on my CMD step

My directories are as follows:

WORKDIR/appname/appname/wsgi.py

In my docker image I need to call the gunicorn command that runs the server. Typically when I am in the terminal I can cd into the right directory and run

gunicorn appname.wsgi:application --bind 0.0.0.0:8000

How can run this same command from 1 folder structure outside of where I normally am?

I have tried gunicorn ./appname/appname.wsgi:application ...

Thanks in advance

Do i change the WORKDIR right before the command?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!