Question

How to launch new website on Digital Ocean

I have a CSS HTML site that I have developed. I currently have it running in test on GITHUB. I would like to deploy it to production on Digital Ocean, but cannot find any information on how to do that. Could you please point me to the implementation process for a CSS HTML JS website?


Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

alexdo
Site Moderator
Site Moderator badge
November 7, 2022

Hello there,

You can also use our App Platform and deploy your website there. App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.

https://www.digitalocean.com/products/app-platform

https://docs.digitalocean.com/products/app-platform/how-to/

You can automate the code changes via GitHub hooks and every time you make a code change to your GitHub repository this will be pulled to your website, automatically.

Regards

KFSys
Site Moderator
Site Moderator badge
October 30, 2022

Hi @donmcclure,

To build a new website on DigitalOcean with HTML CSS and JS, all you would need is a WebService like Apache or Nginx. Since Apache2 is a bit more straightforward, I’ll recommend you to go with it:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-22-04

The above article will help you install Apache2, MySQL and PHP on your Ubuntu Droplet. You can go without MySQL at this point but I’ll still recommend installing it for future use.

I’ll recommend going for the cheapest Droplet there is just because an HTML, CSS, JS website shouldn’t be that heavy and you can upgrade the droplet’s resources at any time.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.