similar to: Class level variables in Mongrel

Displaying 20 results from an estimated 60000 matches similar to: "Class level variables in Mongrel"

2007 Mar 25
2
Mongrel & Mint (PHP related)
Hi, Does anyone have the Mint stats package setup with their Rails application. I have uploaded Mint to the public folder, but when I try and request domain.com/mint/index.php the page is served as a download instead of being processed by mod_php. Im guessing this isn''t really a Mongrel problem but what I actually need to do is prevent Apache proxying certain requests to Mongrel.
2007 Mar 07
1
Two Mongrel''s Two Rails Applications
Hi, I have Mongrel up and running for one application (port 3000), but when I start another Mongrel for a second application (port 4000) I can access both sites locally (using curl) but not remotly via a browser. If I stop the first applications Mongrel and start the second the second one works. In other words I can only run one application at once... I have both on different ports, it makes
2007 Apr 05
1
My mongrel keeps shutting down
I''m on a VPS running CentOS. I startup my server with: mongrel_rails start -d -p 3000 -e production and it runs for a while. But later I receive ''502 Bad Gateway'' errors implying my mongrel has crapped out. So in the console I do this: [prompt]# mongrel_rails start -d -p 3000 -e production ** !!! PID file log/mongrel.pid already exists. Mongrel could be running
2008 Nov 11
7
problem starting mongrel server
Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs on port 3000 by name iphone configuration utility i am unable to attach the screen shot as it is saying file to large. Error which i get in terminal is listed below => Booting
2007 Mar 12
2
Mongrel on Windows Server 2003 Results in 500 Errors
Ok, here is the situation: I need to run a mongrel server on windows server 2003. The application it will be serving is an application that is frozen to rails 1.1.6. We''re using mongrel 1.0 as the web server. Every 10th request (random, sometimes more sometimes less), either called through ajax or as a normal page request... dies with a 500 error. No logs are available anywhere, as far
2007 Jun 06
10
Attachment_fu S3 uploads killing mongrel
I was wondering if anyone here has seen a similar error to this... >From mongrel.log /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ transactions.rb:85:in `transaction'': Transaction aborted (ActiveRecord::Transactions::TransactionError) from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ configurator.rb:293:in `call'' from
2008 Nov 21
1
mongrel problems
Hi, I am using mongrel on win2k. after i start mongrel only one engine handles all the request so the requests are served serially. How can i run multiple instances of mongrel so that requests are directed to the mongrel instance which is not busy. Another thing is that sometimes if the request takes long then mongrel does not time out the request.(i am using mongrel on windows) . As a result
2007 Nov 16
2
strange Mongrel 500 error
Hi, When I start mongrel as a non root user, I will get an 500. In my log/production.log I see this: file /home/paul/rails/Test/releases/20071115232111/tmp/sessions// ruby_sess.9a975fe464a2f6ba not readable ... when I start mongrel as root everything works fine. Can anyone imagine whats up there? Thanks in advance, Paul PS: is it a bad idea to run mongrel as root? (security etc.)
2006 Dec 18
3
Using a network drive to share files between Mongrel/Rails instances...?
I have a Apache proxying to a number of Mongrel''s on different physical machines. What I need to do next is share files between the Rails instances. I am creating dynamic files which will be created by Rails and stored on disk. The file is then recovered and served at a later date by an ajax request. But because of the proxying the ajax call my be routed to a different machine.
2006 Jul 25
3
Question about how Mongrel process works with singletons
Hi, I have a controller where I access a singleton class that I use to connect to a DRbprocess DrbConnector.instance.some_method I notice that on every request, the constructor is called so it is making a new instance of this singleton. Is this normal? Thanks, Curtis
2007 Apr 26
2
newbie question about mongrel
Hi, I am very new to ruby, rails, and mongrel, so this may not make any sense, but i figured i would ask it anyways. I have been given the task of determining if rails is a good transition for our company. While my preliminary tests have been successful (i.e. installing mongrel, deploying a test app, etc), i have to figure out how to run our existing cgi scripts under our new environment.
2008 Jul 14
3
Mongrel freeze
Hi, I have had trouble with mongrel freezing after a period of inactivity. Following the advice from the mongrel FAQ, I added: ActiveRecord::Base.verification_timeout = 14400 to my environment.rb file. Unfortunately, that registered a mongrel error: "uninitialized constant ActiveRecord (NameError)" How do I overcome this one? I tried: require ActiveRecord::Base but that registered
2007 Jan 15
7
starting Mongrel via script/server
The 2nd edition of "Agile Web Development with Rails" claims that script/server would start Mongrel or lighttpd instead of WEBrick if one of these servers is installed. It does not seem to do that for Mongrel on my Windows XP that has Mongrel installed by installing Instant Rails 1.4. Should I assume that the book has an error? -- Posted via http://www.ruby-forum.com/.
2007 Jul 29
4
Mongrel stops responding after period of inactivity
Hi I''m running a 2-instance Mongrel cluster behind Apache 2.2.4 with Rails 1.2.3. If no requests are received by the application for several hours (this usually happens overnight) then Mongrel stops responding and no requests are detected by Rails (at least nothing is in the Rails log). Nothing untoward is in the Mongrel log. If you try and visit the application, the request times out
2006 Oct 07
2
Proxying Apache to Mongrel, not sure if Apache is serving up static files
Let''s try this one... I have Apache 2.0.55 set up and also have Mongrel set up. I have Radiant set up running under Mongrel, and have Apache proxying to the Mongrel instance. That all seems to be working fine. I thought I''d modify the settings a bit to let Apache serve up the static files - images, stylesheets, etc. I have it set up, and am not getting any errors. However.
2007 Apr 03
2
mongrel cluster restart with capistrano fails but manually works
Hi all, I am out of my head here... I have a 3 node cluster with 10 mongrels running on each. When I deploy, I break all the mongrels every time. I have tried just about everything. I can restart my mongrels without a hitch manually, it''s only when I use cap deploy. Maybe I am missing something here... so if I can get some help it would be appreciated. The errors are the typical mongrel
2007 Jan 12
2
Forking a process in Rails is messing up mongrel
I''m trying to run an external Ruby script from my Rails app. To do this i''m using this function def fork_with_new_connection(config, my_class = ActiveRecord::Base) pid = fork do begin my_class.establish_connection(config) yield ensure my_class.remove_connection end end Process.detach(pid) end Then, within my controller I do this:
2007 May 02
2
Routing to a static resource in Mongrel
All, I would like to set up a route that causes a static "index.html" file (in the "public" directory) to be served on a request to an empty URL path (i.e. map.connect '''', ...). Can I do that with Mongrel? Basically, I want the ability to do in Mongrel what I will end up doing in Apache with a rewrite directive. Thanks, Wes -- Posted via
2006 Nov 23
2
Mongrel + Apache 1.3 + OpenBSD
Hello, I want to install a mongrel rails server with an apache in fronthead, all that on OpenBSD. But OpenBSD is released with a homemade Apache 1.3.29 patched by the OpenBSD team. I really want to keep this version of apache and I don''t want to change it to Apache 2.x (because of the security and the license but it''s not the point here). But for having mongrel, it has to be with
2006 Sep 06
7
Error on Windows and FreeBSD
First off Windows, because actually what I appear to be getting is a Rails error which only occurs when I use Mongrel, using Webrick I do not get this error. I start Mongrel using: mongrel_rails start I have mongrel, win32-services and mongrel-service gems installed even through Im not using mongrel as a service at the moment. The whole application works apart from one action. The error I get