Skip to content

Conversation

jslvtr
Copy link
Contributor

@jslvtr jslvtr commented Oct 12, 2022

https://rest-apis-flask.teclado.com/docs/deploy_to_render/docker_with_gunicorn/

This lecture was showing this command:

docker run -dp 5000:5000 -w /app -v "$(pwd):/app" teclado-site-flask sh -c "flask run"

But this should be this:

docker run -dp 5000:5000 -w /app -v "$(pwd):/app" teclado-site-flask sh -c "flask run --host 0.0.0.0"

Otherwise running the Flask app in development mode locally will work, but it will not be accessible from outside the container's network (i.e. you can't connect to it from the host).

@vercel
Copy link

vercel bot commented Oct 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
rest-apis-flask-python ✅ Ready (Inspect) Visit Preview Oct 12, 2022 at 1:26PM (UTC)

@jslvtr jslvtr merged commit 271e593 into develop Oct 12, 2022
@jslvtr jslvtr deleted the jose/cou-153-rest-fix-lecture-with-incorrect-flask branch October 12, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant