mod-rails

Remote debugging Rails application in Aptana Studio 3

拟墨画扇 提交于 2020-01-13 19:24:47
问题 My Rails development IDE is Aptana Studio 3.0.5, running on Windows. The applications runs on Apache + ModRails (Phusion Passenger) on a separate CentOS Linux machine. I have both Rails 2.x and 3.x applications. I would like to be able to use the debugger in Aptana Studio (connect to the running application remotely). There are apparently some provisions for this, but I was unable to figure out what I need on the server side (in my Rails application configuration) I've tried this: Using Rack:

Not able to upload in a passenger app behing apache

老子叫甜甜 提交于 2019-12-20 04:31:11
问题 Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes. Error backtrace: [ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18 07:13:14.842 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Connection reset by peer (104) Backtrace: in 'boost::shared_ptr Hooks::receiveRequestBody(request_rec*, const char*)' (Hooks.cpp: 1084) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:459

Rails file upload size limit

隐身守侯 提交于 2019-12-18 01:18:27
问题 Does anyone know a good solution to limit the file upload size when running a Rails application with Passenger/mod_rails. The request should immediately be declined, so that the file doesn't get transferred to the server. The solutions I've found so far all describe how to patch Mongrel to implement a limitation, but I have to use passenger with this application. 回答1: Or if you're using nginx with passenger, add in the server block: server { client_max_body_size 100M; } http://wiki.nginx.org

Is there an easy way to run Garbage Collection outside of the request cycle in Passenger?

浪子不回头ぞ 提交于 2019-12-05 21:38:21
问题 Unicorn has OobGC rack middleware that can be used to run GC.start after a certain number of requests. Is there a similar sort of thing in Phusion Passenger? 回答1: Phusion Passenger 4 officially introduces an out of band garbage collection mechanism. It's more flexible than Unicorn's by allowing any arbitrary work, not just garbage collection. http://blog.phusion.nl/2013/01/22/phusion-passenger-4-technology-preview-out-of-band-work/ 回答2: Hooking into PhusionPassenger::Rack::RequestHandler

Is there an easy way to run Garbage Collection outside of the request cycle in Passenger?

谁说我不能喝 提交于 2019-12-04 03:15:58
Unicorn has OobGC rack middleware that can be used to run GC.start after a certain number of requests. Is there a similar sort of thing in Phusion Passenger? Phusion Passenger 4 officially introduces an out of band garbage collection mechanism. It's more flexible than Unicorn's by allowing any arbitrary work, not just garbage collection. http://blog.phusion.nl/2013/01/22/phusion-passenger-4-technology-preview-out-of-band-work/ Hooking into PhusionPassenger::Rack::RequestHandler#process_request() is the only mechanism I have found. To do this in a similar way to the Unicorn OobGC, you can use

Should I give up on deploying Rails under Windows?

冷暖自知 提交于 2019-12-02 06:45:36
问题 I run an instance of a rails application that is developed by another team. Back when I started, the common way to deploy Rails apps was to use Mongrel behind Apache, and that's the configuration that that team used for their own instances. Since I'm a Windows guy, and since both Apache and Mongrel can easily be set up as Windows services, I used a (virtual) Windows box and set up everything there. I guess since than things changed in Rails land. Mongrel has stagnated (at least that's my

Not able to upload in a passenger app behing apache

徘徊边缘 提交于 2019-12-02 04:31:56
Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes. Error backtrace: [ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18 07:13:14.842 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Connection reset by peer (104) Backtrace: in 'boost::shared_ptr Hooks::receiveRequestBody(request_rec*, const char*)' (Hooks.cpp: 1084) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:459) NOTE:user had not cancelled or anything. He was on firefox :-) other errors seen in the logs are: [

Should I give up on deploying Rails under Windows?

给你一囗甜甜゛ 提交于 2019-12-02 03:14:37
I run an instance of a rails application that is developed by another team. Back when I started, the common way to deploy Rails apps was to use Mongrel behind Apache, and that's the configuration that that team used for their own instances. Since I'm a Windows guy, and since both Apache and Mongrel can easily be set up as Windows services, I used a (virtual) Windows box and set up everything there. I guess since than things changed in Rails land. Mongrel has stagnated (at least that's my impression of the common perception). The team developing my app has switched to using mod_rails a while

Passenger/mod_rails fails to initialize in Fedora 12 when starting Apache

ぐ巨炮叔叔 提交于 2019-11-29 01:59:29
I am in the process of setting up a server to run a Ruby on Rails application on Fedora 12, using Passenger. I am at the stage where I've installed Passenger, set it up as prescribed, but get the following errors when I restart Apache: [Wed Jan 13 15:41:38 2010] [notice] caught SIGTERM, shutting down [Wed Jan 13 15:41:40 2010] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0 [Wed Jan 13 15:41:40 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Jan 13 15:41:40 2010] [error] *** Passenger could not be initialized because of this

Rails file upload size limit

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 21:41:50
Does anyone know a good solution to limit the file upload size when running a Rails application with Passenger/mod_rails. The request should immediately be declined, so that the file doesn't get transferred to the server. The solutions I've found so far all describe how to patch Mongrel to implement a limitation, but I have to use passenger with this application. Or if you're using nginx with passenger, add in the server block: server { client_max_body_size 100M; } http://wiki.nginx.org/NginxHttpCoreModule#client_max_body_size You may cap the upload size via Apache using the LimitRequestBody