This is an update to my previous post Setting up Hanlon Development Environment. This update reflects the latest script changes incorporated
Pre-requisites
Operating System: Support any standard Linux distribution (Ubuntu LTS 14.04)
Database: MongoDB
Web Server: Trinidad
Dev Tools: JRuby development enviroment with necessary gems
Others: git, make, openjdk7, etc.,
Setting up
Update your linux to get all the latest distributions
apt-get install updates
1. Install pre-requisites
apt-get install -y git make mongodb openjdk-7-jre-headless g++ curl |
2. Install ruby environment with your preferred Ruby environment manager like rvm or rbenv (I prefer using rvm) and setup jruby as your default environment
\curl -sSL https://get.rvm.io | bash -s stable --ruby=jruby source /usr/local/rvm/scripts/rvm rvm use jruby –default |
3. Setup Hanlon working directory (My preferred location ~/wspace/hanlon) and clone hanon git repository
cd mkdir wspace git clone https://github.com/csc/Hanlon.git hanlon |
4. Install / update ruby gems
cd hanlon bundle install gem install bundler trinidad |
Hanlon now comes with scripted support both for trinidad and puma. (I prefer running trinidad)
5. Run hanlon initialization script
./hanlon_init.rb |
This script creates config file and necessary directory structure to run hanlon.
6. Edit hanlon client and server configuration files
Now hanlon client and server configuration files are segregated to reflect right configuration parameter. Files created by hanlon_init (samples included below) are suitable for most of the practical purpose. Do edit them (just in case) before starting the server
~/wspace/hanlon/cli/config/hanlon_client.config
# This file is the main configuration for ProjectHanlon |
~/wspace/hanlon/cli/config/hanlon_server.config
# |
7. Run trinidad server
cd web ./run-trinidad.sh |
Comments
Post a Comment