Skyhopper on Ubuntu Environment

Hey Guys, I guess you want to checkout and install SkyHopper on your local PC or on an EC2 server with Ubuntu which is a Debian based Linux OS. The purpose of this is to checkout SkyHopper to another linux based OS as currenlty, we only support Amazon Linux for the installation instruction.

Now, here are some tips and instruction when installing the service into Ubuntu Version 14.04 LTS Client or server.

First is to remove old ruby version and upgrade it to version 2.2.4. Please careful not to over-upgrade it a more higher version as it will have dependency problems in the future. As of now we would only use Ruby version 2.2.4

The next step is to install some dependencies for Ruby.

Next we're going to be installing Ruby using rbenv. Take note that there are other ways to install ruby that have their own benefits, most people prefer using rbenv these days, but if you're familiar with rvm you can install using that method as you please. But for now I will just use rbenv.

Installing with rbenv is a simple two step process. First you install rbenv, and then ruby-build:

 

Install bundler using gem to get out from dependency hell, and ensures that the gems you need are present.

Install nodejs and npm for frontend dependencies

Install bower using npm

Install necessary development libraries needed 

Install MySQL Server

To install MySQL, run the following command from a terminal prompt:

During the installation process you will be prompted to enter a password for the MySQL root user.

Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:

When you run this command, you should see the following line or something similar:

If the server is not running correctly, you can type the following command to start it:

Then we need to Install Redis

 

To install redis, please follow the instruction written here: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis

Install nginx for websockets, traffic hosting and handling to be used in SkyHopper System.

You will probably be prompted for your user's password. Enter it to confirm that you wish to complete the installation. The appropriate software will be downloaded to your server and then automatically installed.

We can make sure that our web server will restart automatically when the server is rebooted by typing:

Then we need to remove the default variable of nginx to replace it with SkyHopper 

Then copy the reverse proxy to setup nginx. You might need to change some variables written as it needs to correspond to your skyhopper setup, for example the directory of your skyhopper files are located.

Downloading/Cloning SkyHopper from GitHub

Up to this point it can be executed by Chef.

Creating MySQL user

development

production

SkyHopper Setup

bundle install

bower install

Compiling TypeScript

database.yml

development

production

Database Setup

Creating database using rake

Creating tables using rake

creating initial data using rake

Start

Running Skyhopper

Initializing settings for SkyHopper

Perform the initial set up from the browser by accessing SkyHopper

Establishing the Chef Server keys

Copy the installation files under the project directory of SkyHopper tmp/chef to ~/.chef

 

Congratulations! You have successfully install skyhopper in your system. If you encountered any problems during installation please write comments below. Thank you!

Author Profile

スカイブロガー

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


Time limit is exhausted. Please reload CAPTCHA.