So I''m using ec2onrails which launches mongrels like: mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* Where app.yml looks like this: --- user: app cwd: /mnt/app/current port: "8000" environment: production daemon: true pid_file: log/mongrel.pid servers: 6 group: app The question is, I have installed the mongrel upload_progress plugin, and according to the docs I need it to read a script (mongrel.config) in the config folder of my app: uri "/", :handler => plugin("/handlers/upload", :frequency => 1, :drb => ''druby://127.0.0.1:2999'', :path_info => [''/assets.js'']), :in_front => true The docs say to use a command like "mongrel_rails start -S config/ mongrel.config", which works when I hack it into the local rails script/server process, however the -S options doesn''t appear to be valid for for the mongrel cluster::start command. Can this information be put in the app.yml file somehow? Is there a way to get the cluster to read the script file? Thanks, j
Just one more ping on this. I can''t get upload_progress working on my server without it, but no one seems to know how to set it up. I''d appreciate any help. Thanks, j On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote:> So I''m using ec2onrails which launches mongrels like: > > mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* > > Where app.yml looks like this: > > --- > user: app > cwd: /mnt/app/current > port: "8000" > environment: production > daemon: true > pid_file: log/mongrel.pid > servers: 6 > group: app > > The question is, I have installed the mongrel upload_progress > plugin, and according to the docs I need it to read a script > (mongrel.config) in the config folder of my app: > > uri "/", > :handler => plugin("/handlers/upload", > :frequency => 1, > :drb => ''druby://127.0.0.1:2999'', > :path_info => [''/assets.js'']), > :in_front => true > > The docs say to use a command like "mongrel_rails start -S config/ > mongrel.config", which works when I hack it into the local rails > script/server process, however the -S options doesn''t appear to be > valid for for the mongrel cluster::start command. Can this > information be put in the app.yml file somehow? Is there a way to > get the cluster to read the script file? > > Thanks, > j > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
P.S. $25 Amazon Gift certificate to anyone who can help me out. j On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote:> Just one more ping on this. I can''t get upload_progress working on > my server without it, but no one seems to know how to set it up. > I''d appreciate any help. > > Thanks, > j > > > On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: > >> So I''m using ec2onrails which launches mongrels like: >> >> mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean >> $* >> >> Where app.yml looks like this: >> >> --- >> user: app >> cwd: /mnt/app/current >> port: "8000" >> environment: production >> daemon: true >> pid_file: log/mongrel.pid >> servers: 6 >> group: app >> >> The question is, I have installed the mongrel upload_progress >> plugin, and according to the docs I need it to read a script >> (mongrel.config) in the config folder of my app: >> >> uri "/", >> :handler => plugin("/handlers/upload", >> :frequency => 1, >> :drb => ''druby://127.0.0.1:2999'', >> :path_info => [''/assets.js'']), >> :in_front => true >> >> The docs say to use a command like "mongrel_rails start -S config/ >> mongrel.config", which works when I hack it into the local rails >> script/server process, however the -S options doesn''t appear to be >> valid for for the mongrel cluster::start command. Can this >> information be put in the app.yml file somehow? Is there a way to >> get the cluster to read the script file? >> >> Thanks, >> j >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
Add config_script: <handler file name> in your mongrel_cluster config On Sat, Oct 4, 2008 at 8:10 AM, joshua at crackcreative.com < joshua at crackcreative.com> wrote:> P.S. $25 Amazon Gift certificate to anyone who can help me out. > > j > > On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote: > > Just one more ping on this. I can''t get upload_progress working on my >> server without it, but no one seems to know how to set it up. I''d >> appreciate any help. >> >> Thanks, >> j >> >> >> On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: >> >> So I''m using ec2onrails which launches mongrels like: >>> >>> mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* >>> >>> Where app.yml looks like this: >>> >>> --- >>> user: app >>> cwd: /mnt/app/current >>> port: "8000" >>> environment: production >>> daemon: true >>> pid_file: log/mongrel.pid >>> servers: 6 >>> group: app >>> >>> The question is, I have installed the mongrel upload_progress plugin, and >>> according to the docs I need it to read a script (mongrel.config) in the >>> config folder of my app: >>> >>> uri "/", >>> :handler => plugin("/handlers/upload", >>> :frequency => 1, >>> :drb => ''druby://127.0.0.1:2999'', >>> :path_info => [''/assets.js'']), >>> :in_front => true >>> >>> The docs say to use a command like "mongrel_rails start -S >>> config/mongrel.config", which works when I hack it into the local rails >>> script/server process, however the -S options doesn''t appear to be valid for >>> for the mongrel cluster::start command. Can this information be put in the >>> app.yml file somehow? Is there a way to get the cluster to read the script >>> file? >>> >>> Thanks, >>> j >>> _______________________________________________ >>> Mongrel-users mailing list >>> Mongrel-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mongrel-users >>> >> >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mongrel-users/attachments/20081013/6bb89236/attachment-0001.html>
Yes, thank you. This turns out to be correct, I had figured it out on my own finally. Nevertheless since you where the only person to answer, much less correctly, you get the prize. I''ll email you privately with the gift certificate. Thanks, j On Oct 13, 2008, at 1:30 AM, Piyush Ranjan wrote:> Add > config_script: <handler file name> > in your mongrel_cluster config > > > On Sat, Oct 4, 2008 at 8:10 AM, joshua at crackcreative.com <joshua at crackcreative.com > > wrote: > P.S. $25 Amazon Gift certificate to anyone who can help me out. > > j > > On Oct 3, 2008, at 11:49 AM, joshua at crackcreative.com wrote: > > Just one more ping on this. I can''t get upload_progress working on > my server without it, but no one seems to know how to set it up. > I''d appreciate any help. > > Thanks, > j > > > On Sep 30, 2008, at 1:34 PM, joshua at crackcreative.com wrote: > > So I''m using ec2onrails which launches mongrels like: > > mongrel_rails cluster::start -C /etc/mongrel_cluster/app.yml -clean $* > > Where app.yml looks like this: > > --- > user: app > cwd: /mnt/app/current > port: "8000" > environment: production > daemon: true > pid_file: log/mongrel.pid > servers: 6 > group: app > > The question is, I have installed the mongrel upload_progress > plugin, and according to the docs I need it to read a script > (mongrel.config) in the config folder of my app: > > uri "/", > :handler => plugin("/handlers/upload", > :frequency => 1, > :drb => ''druby://127.0.0.1:2999'', > :path_info => [''/assets.js'']), > :in_front => true > > The docs say to use a command like "mongrel_rails start -S config/ > mongrel.config", which works when I hack it into the local rails > script/server process, however the -S options doesn''t appear to be > valid for for the mongrel cluster::start command. Can this > information be put in the app.yml file somehow? Is there a way to > get the cluster to read the script file? > > Thanks, > j > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mongrel-users/attachments/20081016/fcccea67/attachment.html>