Skip to content

Commit 271e593

Browse files
authored
Merge pull request #82 from tecladocode/jose/cou-153-rest-fix-lecture-with-incorrect-flask
2 parents 84bc1b4 + ae775cd commit 271e593

File tree

1 file changed

+2
-2
lines changed
  • docs/docs/11_deploy_to_render/03_docker_with_gunicorn

1 file changed

+2
-2
lines changed

docs/docs/11_deploy_to_render/03_docker_with_gunicorn/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ If you use this `Dockerfile`, it doesn't mean you can't run it locally using the
6262
To run the Docker container locally, you'll have to do this from now on:
6363

6464
```zsh
65-
docker run -dp 5000:5000 -w /app -v "$(pwd):/app" teclado-site-flask sh -c "flask run"
65+
docker run -dp 5000:5000 -w /app -v "$(pwd):/app" teclado-site-flask sh -c "flask run --host 0.0.0.0"
6666
```
6767

68-
This is similar to how we've ran the Docker container with our local code as a volume (that's what `-w /app -v "$(pwd):/app"` does), but at the end of the command we're telling the container to run `flask run` instead of the `CMD` line of the `Dockerfile`. That's what `sh -c "flask run"` does!
68+
This is similar to how we've ran the Docker container with our local code as a volume (that's what `-w /app -v "$(pwd):/app"` does), but at the end of the command we're telling the container to run `flask run --host 0.0.0.0` instead of the `CMD` line of the `Dockerfile`. That's what `sh -c "flask run --host 0.0.0.0"` does!
6969

7070
Now you're ready to commit and push this to your repository and re-deploy to Render.com!

0 commit comments

Comments
 (0)