Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.43 KB

digitalocean.md

File metadata and controls

18 lines (11 loc) · 1.43 KB

deploying code-server on DigitalOcean

⚠️ The deploy script referenced in this guide uses the code-server --link service which is now deprecated. If this solution does not work for you, we recommend following our guide to use LetsEncrypt with Caddy to securely connect to code-server on your VM.

DigitalOcean is an developer-friendly platform with cloud servers. Here is the easiest way to launch code-server on DigitalOcean:


  1. Log into DigitalOcean and create a new Ubuntu 20.10 droplet with any size, in any region

  2. Under "Select additional options," check User data. This will allow you to specify a script that will run on first boot.

  3. Paste in the contents of launch-code-server.sh to the textarea.

  4. Create your server. Feel free to add SSH keys or other preferences.

  5. Once your server starts, you can simply navigate to the IP address and get forwarded to a secure version of code-server, which will be proxied behind your GitHub account. For information on how this works, see code-server --link.

    DigitalOcean launch code-server

See our troubleshooting guide if you are unable to connect after some time.