I need a step by step guide to connect my flask app running on a droplet to a domain name, which I have bought at Godaddy.com.
Help me.
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!
Hello there!
First step is to point your domain on Godaddy.com to your droplet.
Here is a nice tutorial for that: https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars
Once done that you can just run your Flask app on port 80 and web requests will go right to it.
Best practices state that you should run a webserver that servers up the Flask app for you. This way, if the flask app dies for some reason, you can have fall back page that will be served up by the webserver.
Here are some instructions to configure Nginx to act as your webserver (this will link to your Flask App). https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-16-04
Hope that helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.