We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Abby,
Thanks for your good tutorial for ecs demo.
When building the docker image for ecs-demo-web and ecs-demo-api:
$ cd <path/to/project>/ecs-demo/web $ docker build -t ecs-demo-web . $ cd <path/to/project>/ecs-demo/api $ docker build -t ecs-demo-api .
In the app.py, it specifies the string as the port number, this may occur the type error when running the docker image.
ecs-demo/web/app.py
Line 9 in ed773df
ecs-demo/api/app.py
Error output
Traceback (most recent call last): File "app.py", line 9, in <module> app.run(port='8000',host='0.0.0.0') File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 772, in run run_simple(host, port, self, **options) File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 748, in run_simple raise TypeError('port must be an integer')
I open a PR to fix this issue and hope it helps.
The text was updated successfully, but these errors were encountered:
Fix the TypeError in app.py
4cdc8af
Refer: abby-fuller#3
Here are related flask official issue discussing about this case.
app.run(port='5000', debug=True) error app.run(port='5000', debug=True) error pallets/flask#2220
Raise TypeError if port is not an integer Raise TypeError if port is not an integer pallets/werkzeug#1088
Change port type from string to integer works fine. app.run(port=3000,host='0.0.0.0')
app.run(port=3000,host='0.0.0.0')
Sorry, something went wrong.
No branches or pull requests
Hi Abby,
Thanks for your good tutorial for ecs demo.
When building the docker image for ecs-demo-web and ecs-demo-api:
In the app.py, it specifies the string as the port number, this may occur the type error when running the docker image.
ecs-demo/web/app.py
Line 9 in ed773df
ecs-demo/api/app.py
Line 9 in ed773df
Error output
I open a PR to fix this issue and hope it helps.
The text was updated successfully, but these errors were encountered: