Running Flask App on Digital Ocean
I mapped my DO server ip address to a DNS with a domain i registered on namecheap. This is what i go on DO as my Zone File:
$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.noobhacker.org. ( 1413865446 ; last update: 2014-10-21 04:24:06 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 184.108.40.206
Then on the DO server, i ran the following commands:
I got the following:
- Running on http://127.0.0.1:5000/
- Restarting with reloader
Then on the browser, I ran noobhacker.org:5000 but I get Webpage not available. It should have shown the simple “Hello World!!!” output.
My source code is here: https://github.com/ueg1990/moocaggregatorrestful_api
I would really appreciate some help here. :)
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.