Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug(docker): fix missing hostname when running flask in docker#82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

jslvtr
Copy link
Contributor

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

vercelbot commentedOct 12, 2022

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

NameStatusPreviewUpdated
rest-apis-flask-python✅ Ready (Inspect)Visit PreviewOct 12, 2022 at 1:26PM (UTC)

@jslvtrjslvtr merged commit271e593 intodevelopOct 12, 2022
@jslvtrjslvtr deleted the jose/cou-153-rest-fix-lecture-with-incorrect-flask branchOctober 12, 2022 13:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@jslvtr

[8]ページ先頭

©2009-2025 Movatter.jp