Report this

What is the reason for this report?

New Droplet not finding flask server

Posted on December 25, 2016

I’m trying to deploy a flask app on a droplet (CENTOS) Python 2.5 I’m running into issues viewing from the ipaddress.

(tweet) [root@greetme-centos-512mb-nyc3-01 webapp]# gunicorn app:app -b localhost:80 [2016-12-25 21:11:03 +0000] [22798] [INFO] Starting gunicorn 19.6.0 [2016-12-25 21:11:03 +0000] [22798] [INFO] Listening at: http://127.0.0.1:80 (22798) [2016-12-25 21:11:03 +0000] [22798] [INFO] Using worker: sync [2016-12-25 21:11:03 +0000] [22803] [INFO] Booting worker with pid: 22803

Pinging the ipaddress public facing works.

And I added port 80 to the IPTables.

Any suggestions for getting this to work would be helpful. Thanks.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You’re binding it to localhost, why do you expect it to be viewable using the IP address?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.