Coder Social home page Coder Social logo

Comments (3)

wsvincent avatar wsvincent commented on August 17, 2024 1

Hi @mnoah66 and @jurgenvt,

Thanks for the comments. Finishing the 4.0 update as we speak so this feedback is helpful and something I've been aware of back when you made it. To the questions...

  • the database isn't deleted when we rebuild the image. I've changed the wording so that's not confusing in the update. The underlying Docker container has a volumes mount and that is where the db exists. If you deleted the container then the db would go away too. But that's not what we're doing, just rebuilding the image.
  • the default for docker-compose is to use a docker-compose.yml file so we have to explicitly set and use the -f flag to make it check our docker-compose-prod.yml file

from djangoforprofessionals.

jurgenvt avatar jurgenvt commented on August 17, 2024

Having the exact same issue here. i found that:

After:

docker-compose -f docker-compose-prod.yaml up -d --build

docker-compose exec web python manage.py check --deploy

i am also getting:
?: (security.W018) You should not have DEBUG set to True in deployment.

the deploy check seems to read/check the variables from docker-compose.yaml and not from docker-compose-prod.yaml

However the logic of showing/hiding the debug toolbar in the website works.

I tried rebuilding, restarting docker but ended up editing my docker-compose.yaml file, which should not be the way here in this exercise.

from djangoforprofessionals.

mnoah66 avatar mnoah66 commented on August 17, 2024

Thank you @jurgenvt

I re-ran the check --deploy command, this time specifying the production file...

docker-compose -f docker-compose-prod.yml python manage.py check --deploy

...and I got the expected results. Like you said I guess the docker-compose command, regardless of what you are doing after it, always looks at your docker-compose.yml file.

@wsvincent any ideas?

from djangoforprofessionals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.