search for: ror_root

Displaying 3 results from an estimated 3 matches for "ror_root".

Did you mean: rb_root
2007 Jun 22
0
Mongrel_cluster and rails app in a subdirectory
...s app is the document root, but a client just asked to move the app to a subdirectory, leaving he rest of their site alone. However, I can''t seem to get it to work. Let''s make the assumption that the Apache document root for the site is in /www/htdocs, and the Rails root is /www/ror_root. Further lets say the client wants the application to be found at http://mysite.com/railsapp. This is what I have in the mongrel_cluster.yml --- user: mongrel cwd: /www/ror_root port: "8008" environment: production group: mongrel address: 127.0.0.1 pid_file: log/mongrel.pid servers: 2...
2007 Apr 23
1
Launching DRb server on reboot: solved
...will do the trick. Here''s our entire startup script: #!/bin/bash # # This script starts and stops the ferret DRb server # chkconfig: 2345 89 36 # description: Ferret search engine for ruby apps. # # save the current directory CURDIR=`pwd` PATH=/usr/local/bin:$PATH RORPATH="/path/to/ror_root" case "$1" in start) cd $RORPATH echo "Starting ferret DRb server." FERRET_USE_LOCAL_INDEX=1 \ script/runner -e production \ vendor/plugins/acts_as_ferret/script/ferret_start ;; stop) cd $RORPATH e...
2007 Apr 20
1
Launching DRb server on reboot
...s all one line) If I wait until the server is done rebooting, and run this script myself, I never have any problem. So the next step was trying to make sure DRb server comes back up if the server reboots, so, I did this in /etc/rc.d/rc.local: CURDIR=`pwd` cd /www/ourdomain.com/www.ourdomain.com/ror_root ./start_ferret cd $CURDIR However, the DRb server never comes up after reboot. Any ideas? Our setup: mongrel_cluster, proxied by apache 2.2, rails 1.2.3, ruby 1.6. It''s on a RHE4 machine. I''d be happy to post any log info if I could find any that pertained to this. Thanks i...