New Droplet not finding flask server

December 25, 2016 1.2k views
Deployment CentOS

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: (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.

1 Answer

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

  • That was it. I was used to getting a port 80 forward happening on my local machine.
    I changed the binding to the ip address and it works.

Have another answer? Share your knowledge.