Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 2.25 KB

digitalocean.md

File metadata and controls

38 lines (30 loc) · 2.25 KB

Deploy on DigitalOcean

This tutorial shows you how to deploy code-server to a single node running on DigitalOcean.

If you're just starting out, we recommend installing code-server locally. It takes only a few minutes and lets you try out all of the features. You can also try out the IDE on a container hosted by Coder


Use the "Create Droplets" wizard

Open your DigitalOcean dashboard to create a new droplet

  • Choose an image - Select the Distributions tab and then choose Ubuntu

  • Choose a size - We recommend at least 4GB RAM and 2 CPU, more depending on team size and number of repositories/languages enabled.

  • Launch your instance

  • Open a terminal on your computer and SSH into your instance

    example: ssh [email protected]

  • Once in the SSH session, run the following commands to download and install the latest linux release

  • Download the latest Linux release with this command:

    bash <(curl -s https://raw.githubusercontent.com/codercom/code-server/master/scripts/update.sh)
    
  • Navigate to the code-server directory with this command:

    cd ~/code-server-linux
    

    To ensure the connection between you and your server is encrypted view our guide on securing your setup

  • Finally start the code-server

    sudo ./code-server -p 80
    

    For instructions on how to keep the server running after you end your SSH session please checkout how to use systemd to start linux based services if they are killed

  • When you visit the public IP for your Digital Ocean instance, you will be greeted with this page. Code-server is using a self-signed SSL certificate for easy setup. To proceed to the IDE, click "Advanced"

  • Then click "proceed anyway"


NOTE: If you get stuck or need help, file an issue, tweet (@coderhq) or email.