Hi all, Got it figured out... Firstly, redmine apparently wasn't on my path. Not sure why that would be different when coming from Cherokee (as user: rails) but a simple apt-get install mongrel fixed that. Not sure why it couldn't use the Gem.
I then discovered mongrel had to be run *from* the directory itself, thanks to Angel for the logging trick. Wouldn't have discovered this otherwise. so I created a bash script with the following: #!/bin/bash > if [ "$(whoami)" != "rails" ]; then > echo "Cannot run this script as anyone but rails." > exit -1; > fi > cd /usr/share/redmine > exec $@ > > I then changed the info sources to: /home/rails/redmine.sh script/server mongrel -e production -p 3645x (x as I created 4 different sources) This worked. Finally! I'm not sure if I'm doing it the correct or the best way. But I'm just glad to have functionality. I believe using mongrel_rails and several arguments I could get this running without the bash script. But it'll do for now. Thanks for the help guys. Much appreciated. On Wed, Jun 16, 2010 at 1:12 AM, Taher Shihadeh <[email protected]> wrote: > Does this fix it for you, Alex? > I've just commited a patch (r5202) that should fix your problem with the > wizard. > > > If not, could you try with > "/usr/share/redmine/script/server webrick -e production -p 36456" > just to discard that it is a Mongrel related problem (especially since the > pwd . > > Regards > > > On 15/06/10 16:17, Angel L. Garcia Sanchez wrote: > >> Hi. >> >> First, excuse me for my bad english. >> >> I've had the same problem, but i fix it :P. >> >> I've needed to do 3 things. >> >> 1.- Edit default vServer settings, In logging tab change Write errors to: >> File and set the error-file path to Filename, (like >> /var/log/cherokee/cherokee.redmine). Save. Now you can see the error. >> 2.- Edit Sources, Uncheck Enabled at Inherit Enviroment. And set >> Interpreter like: /home/redmine/www/script/server -e production -p 55820. >> /home/redmine/www/ is RedMine directory. Save. >> 3.- I've need too change /home/redmine/www/log/production.log owner to >> cherokee user. In Ubuntu: www-data. >> >> >> I hope this help you. >> >> >> >> El Martes 15 Junio 2010 10:02:34 Alex Dunmow escribió: >> >> >>> /usr/share/redmine/script/server mongrel -e production -p 36456 >>> >>> That's what the "-e production" does >>> >>> On Tue, Jun 15, 2010 at 4:01 PM, Alvaro Lopez Ortega<[email protected] >>> >wrote: >>> >>> >>> >>>> On 15/06/2010, at 09:56, Alex Dunmow wrote: >>>> >>>> >>>> >>>>> I'm fairly sure I must be missing something simple, I just can't see it >>>>> >>>>> >>>> for all the tress. >>>> >>>> The RAILS_ENV=production environment variable maybe? >>>> >>>> -- >>>> Octality >>>> http://www.octality.com/ >>>> >>>> >>>> >>>> >>> >>> >> _______________________________________________ >> >> Cherokee mailing list >> [email protected] >> http://lists.octality.com/listinfo/cherokee >> >> > > > -- > [email protected] > http://unixwars.com/ > >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
