0.0
No commit activity in last 3 years
No release in over 3 years
A simple rack handler to allow to use suburis without using --prefix
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.3
 Project Readme

SuburiMongrel-rack-handler

Rack handler to deploy Mongrel server in an suburi.

Use

  1. Install gem

    gem install SuburiMongrel-rack-handler

  2. Configure suburi in ENV['RAILS_RELATIVE_URL_ROOT'] (maybe in your code?)

    ENV['RAILS_RELATIVE_URL_ROOT'] = '/my/own/url/path'

  3. Start Rails application with Bundle

    bundle exec rails server SuburiMongrel

Redmine users

If you are using this gem to serve your redmine server in an deep uri then you can put Step 2 in your <redmine>/config/environments/<your_environment_file>.rb. Remenber to add:

# Path to deploy redmine of this environment in web server
ENV['RAILS_RELATIVE_URL_ROOT'] = '/my/own/url/path'
config.relative_url_root = ENV['RAILS_RELATIVE_URL_ROOT']