Deploy your website to DigitalOcean (part-1)

Hi all,
Lately, I deployed my website on digitalocean and it was really cool. It is very simple, especially for developers like me. But I totally recommend having previous experience in Ubuntu, and command line in general. As most of the installation, debugging will be through command line.
Let's get started.

1- Sign up:

  • Go to https://www.digitalocean.com/.
  • Write your email and password.
  • Provide your payment details. ( They don't accept Debit Card yet, so use Credit Card or Paypal)
  • (optional) Enter Promo code, if you checked their Twitter/Facebook you will always find 10$ promo code which enable you to try their cheapest plan for two month.


Pretty simple, now let's create our droplet. Droplet is the unit holding your server, you can have multiple droplets with totally different settings linked to one account.

2- Create Droplet:

  • Click on "Create" in DigitalOcean control panel.
  • Select size of your droplet, cheapest plan is selected by default.
  • Select region, select nearest location to you.
  • Select image, I prefer to choose from "Application" tab directly to have your environment preinstalled . (This save time and effort instead of installing everything from scratch) for me I choose "Ruby on Rails on Ubuntu")
  • Then press "Create Droplet", it will be created in only one minute.
  • Check your email, you will find email with credentials you need.


Now if you copy the IP given in your email, you will see the default page of your environment (Ruby on Rails in my case).

In the next part, I'll show how to upload files to the server and the most basic commands needed.

Good luck

Comments

Popular Posts