Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running the image in docker throws an error #10

Open
classyKSC opened this issue Jul 26, 2021 · 1 comment
Open

When running the image in docker throws an error #10

classyKSC opened this issue Jul 26, 2021 · 1 comment

Comments

@classyKSC
Copy link

C:\Windows\System32\my-webapp>docker run -p 8080:8080 my-webapp

  • Serving Flask app 'app.py' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    Usage: flask run [OPTIONS]
    Try 'flask run --help' for help.

Error: Could not import 'app'.

@chaurasia-namrata
Copy link

@mmumshad getting the same error while running FLASK_APP=app.py flask run --host=0.0.0.0 command.

When tried running this command FLASK_APP=app.py FLASK_ENV=development DEBUG=True flask run got error as below

 * Environment: development
 * Debug mode: on
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: While importing 'app', an ImportError was raised.

kindly help.

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

No branches or pull requests

2 participants