DigitalOcean is a web-hosting provider geared towards developers that offers SSD-based virtual servers (known as droplets) with excellent cost-to-performance ratio. Because setup is different at DigitalOcean compared to traditional web hosting providers, we've written this article to help you get Koken up and running. These instructions assume you are a web developer with basic server management skills, such as the ability to use SSH.
To install Koken at DigitalOcean we will be using our Docker image. This makes it very easy to get a droplet up and running.
1) If you haven't already, create a DigitalOcean account and add your billing info.
2) Sign in to your DigitalOcean dashboard, then click the Create Droplet button at the top.
3) Select One-click apps.
4) Then select Docker x.x.x on 16.04.
5) Under Select Size, make sure the 512MB / 1 CPU option is selected. This will be plenty of resources for most Koken sites, and you can resize the droplet later if required.
6) Select Region and select the location closest to you and those who will be visiting your site.
7) Next, you can optionally specify what SSH keys will be added to the droplet. If you don't use a SSH key your root password will be emailed to you. Learn more about how to setup SSH keys at DigitalOcean if you need help.
8) Enter the domain name you plan to use for your Koken website. After the droplet is created it will be assigned an IP Address. You'll need to change the DNS A record at your domain name registrar to associate the domain name to this IP Address.Then click Create.
9) Once your droplet is created, you'll be redirected to the droplet overview that shows the new droplet's IP address. Copy the IP address to your clipboard, then open a terminal and connect via SSH. For the rest of this walkthrough, we'll assume the IP address is 184.108.40.206.
10) Once you have successfully connected via SSH, setting up Koken is as simple as pasting this command in to the terminal and pressing return:
wget -qO - https://gist.githubusercontent.com/MikeCostello/d5c24758605c702a2e28281a89211bb2/raw/29a5596107cc0fdd53cc6cebb90667e0460e942a/create_koken.sh | bash
It will take a few minutes for the Docker image to download, then the script will setup the Docker container and begin running Koken. When the script completes you may connect to your new installation by loading the same IP address in your browser (e.g. http://220.127.116.11).
Done! Koken should now be installed and ready-to-go with your DigitalOcean account.