Hosting » DigitalOcean » How do I deploy a static site in DigitalOcean?

How do I deploy a static site in DigitalOcean?

Last updated on December 17, 2022 @ 2:17 pm

Deploying a static site on DigitalOcean is simple and requires no configuration. After creating a new Droplet, simply add the static site folder to the droplet’s file system and you’re ready to go.

To create a static site on DigitalOcean:

1. Login to your DigitalOcean account.

2. Click on Droplets on the main dashboard.

3. Click on the Create Droplet button.

4. Enter the Droplet’s name and select a region.

5. Select the Static Site option and click on Create Droplet.

6. Select the static site folder.

7. Click on Create Droplet.

8. Click on the Images button to add an image.

9. Click on the Add File button and select the static site’s .

htaccess file.

10. Click on the Status button to view the Droplet’s status.

11. Copy the Droplet’s public IP address and open a web browser to that address.

12. Click on the Deploy to Droplet button to deploy the static site.

13. Click on the Droplet’s name to view the static site’s contents.

PRO TIP: If you are planning to deploy a static site on DigitalOcean, be aware that there are a few things you need to take into account. First of all, make sure that your site is actually static, as DigitalOcean does not support dynamic sites. Secondly, take into account the fact that you will need to set up a web server in order to host your site, as well as configure DNS records in order to make your site accessible. Finally, be aware that DigitalOcean does not offer any kind of support for static sites, so if you run into any problems, you will need to solve them yourself.
Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.