Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
My Flask App (essentially a static website) on a Ubuntu VPS droplet doesn't load half the time on my desktop, but will on my mobile phone.
I followed the tutorial How to Deploy a Flask Application on an Ubuntu VPS from the digitalocean community tutorials and I got it to work. It’s a single HTML file, single CSS file, and one main.py file. I had a bit of trouble with the DNS but I have the nameservers pointing to digitalocean. In my DNS records I have a type A record with the hostname as my URL and it directs to my IPV4 with a 3600 TTL. I have 3 NS records with the hostname as my URL and the value it directs to are the ns1,ns2,and ns3 digitalocean nameservers with a TTL of 1800.
Furthermore, my SSL certificate does not work and I got it through Digitalocean Settings > Security > Certificates.
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.×