bbc/hive-capture

Name: hive-capture

Owner: BBC

Description: null

Created: 2015-03-10 16:36:03.0

Updated: 2016-01-13 09:29:23.0

Pushed: 2016-05-23 13:15:48.0

Homepage: null

Size: 92

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hive-capture

Set up

ImageMagick is required for the rmagick gem, used for the graphs, so this must be installed first, together with some development libraries:

sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev

After this, the dependencies can be installed:

bundle install
Using Apache

Install Passenger using http://recipes.sinatrarb.com/p/deployment/apache_with_passenger

Add the following lines to your Apache config:

tualHost *:80>
rverName www.yourhost.com
!!! Be sure to point DocumentRoot to 'public'!
cumentRoot /path/to/hive-capture/public
irectory /path/to/hive-capture/public>
# Set environment as required
SetEnv HIVE_ENVIRONMENT production
SetEnv RACK_ENV production

# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
Directory>
rtualHost>
Using thin

To run:

HIVE_ENVIRONMENT=production thin start --threaded -p <port>

or, to run in the background,

HIVE_ENVIRONMENT=production thin start --threaded -p <port> -d
Running behind a proxy

To configure the Apache server to redirect to the a thin server running on port 9292, configure Apache as follows:

tualHost *:80>
roxy *>
Order deny,allow
Allow from all
Proxy>
oxyRequests Off
rverName example.com
oxyPass / http://localhost:9292/
oxyPassReverse / http://localhost:9292/
rtualHost>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.