3

I've seen some questions like this and issues on GitHub, but wasn't able to get it to work. My setup is like this: I have the code locally on Ubuntu 16.04.3

├──+messenger
├── Dockerfile
├── docker-compose.yml

The contents of the docker-compose file is as follows:

version: '2'

services:
    messenger:
        build: .
        ports:
            - "5000:8000"
        command: >
          gunicorn -b 0.0.0.0:8000
            --access-logfile -
            --reload
            "app:app"
        volumes:
          - ".:/messenger"

And no matter what i change inside the messenger directory when the app is running, gunicorn never reloads.

I'm using python:3.6-alpine to build my image.

1 Answer 1

1

Had the same issue recently. I was using python:2.7. But my mistake was not setting DEBUG = True in Django settings. You might want to enable Debug in Flask too. Here is similar question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.