Tag Archives: redmine

Making sure that Phusion Passenger (Mod_rails) is able to run Chiliproject

To be able to run Chiliproject (Fork of Redmine) using Phusion Passenger you need to implement 1 work around. It doesn’t seem like Passenger is aware of environment variables. I saw the following errors in “log/production.log”

Processing ApplicationController#index (for at 2011-08-14 13:40:01) [GET]
  Parameters: {"controller"=>"settings", "action"=>"index"}

ArgumentError (invalid byte sequence in US-ASCII):
  :10:in `synchronize'
  :10:in `synchronize'

Rendering /srv/http/chiliproject/public/500.html (500 Internal Server Error)

Therefore create the following executeable using the code beneath and save it as e.g. /usr/bin/ruby-passenger.

exec /usr/bin/ruby -E utf-8:utf-8 "$@"

Make sure you make it executable by running

# chmod +x /usr/bin/ruby-passenger

// CrashMAG