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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
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>
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
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>