Running As Service - Tracks
|
|
I’m not much of a Ruby person and installed RubyStack mainly to run Tracks. When I try to run the Tracks application as a service I get the following error:
SwitchEnvironmentController: missing default helper path switch_environment_helper UnobtrusiveJavascriptController: missing default helper path unobtrusive_javascript_helper
Processing TodosController#index (for 127.0.0.1 at 2008-03-24 15:57:21) [GET]
Session ID: 1b4768d736b1d3970594a09381869d26
Parameters: {“action”=>”index”, “controller”=>”todos”} Here is the command I used to install the service: mongrel_rails service::install -N “Tracks” -p “3000” -c “C:\Documents and Settings\strivedi\BitNami RubyStack projects\tracks” Here is what the service Path to Executable states: |
|
|
Hi snafilter, If you install a RubyStack service like that it won’t work because the Windows service will override the environment variables set by “user_ruby.bat”. I suggest you to try our ready-made Tracks stack http://bitnami.org/stack/tracks. Or you can try to fix the problem yourself adding to the top of your tracks “config/environment.rb” file something similar to the following: ENV['PATH'] = ENV['PATH'] + 'C:\Program Files\BitNami RubyStack\imagemagick;C:\Program Files\BitNami RubyStack\ruby\bin;C:\Program Files\BitNami RubyStack\subversion\bin;C:\Program Files\BitNami RubyStack\mysql\bin;%PATH%'You should also ensure that MySQL service is running before launching Mogrel service. Hope this helps . Manuel |
