Question

New Droplet not finding flask server

Posted December 25, 2016 1.6k views
CentOSDeployment

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.

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.

×
1 answer

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

Submit an Answer