Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

115
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda