Skip to content
COL0

How to deploy your app on DigitalOcean: Droplet or App Platform

DigitalOcean is one of the friendliest platforms to start with: a clear console and good documentation. Even so, it pays to choose well between the two main ways to publish.

Written by Victor Barrera

The two ways to publish

  • Droplet (VPS): a Linux server you set up yourself. It works for any stack and teaches you how everything works.
  • App Platform: you connect your repository and the platform builds and deploys. It is the quickest if your project fits its templates.

The steps with a Droplet, in short

  1. Create the Droplet with Ubuntu LTS and choose SSH key authentication, not a password.
  2. Enable the cloud firewall (Cloud Firewall) and open only ports 22, 80 and 443.
  3. Harden the server: non-root user, automatic updates and fail2ban.
  4. Deploy your app as on any VPS: a service that restarts itself, Nginx or Caddy, and HTTPS.
  5. Point your domain at the Droplet, using a Reserved IP if you want to be able to change servers without touching DNS.
  6. Enable backups for the Droplet and take a snapshot before big changes.
  7. Database: install it on the Droplet with local-only access, or use a managed one with a private network.
  8. Enable monitoring and alerts for CPU, memory and disk.

Common mistakes

  • Leaving password access enabled on a new server.
  • Opening the database port to the whole internet.
  • Not enabling backups and discovering it after something is already lost.
  • Choosing a Droplet too small that runs out of memory while building.

How we help

We recommend the most economical option for your project and leave it ready, with a domain, HTTPS, backups and automatic deploys.

Frequently asked questions

Droplet or App Platform?

App Platform takes your repository and deploys it for you: less control, less work. A Droplet is a full VPS: more flexible and often cheaper, but you administer it.

Do I need a managed database?

It is optional. It gives you automatic backups and updates, at a higher cost than installing it on your own Droplet. For projects with real users it is usually worth it.

Ready to publish your project?

Book your free 30-minute session and leave with a clear plan.

Book your free session