mongrel

gem install mongrel fails with ruby 1.9.1

牧云@^-^@ 提交于 2019-12-03 01:23:34
I initiated myself into rails development yesterday. I installed ruby 1.9.1, rubygems and rails. Running gem install mongrel worked fine and ostensibly installed mongrel too. I am slightly puzzled because: script/server starts webrick by default which mongrel returns nothing locate mongrel returns lots of entries like /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib /Developer/SDKs/MacOSX10

How do you handle SSL in development?

对着背影说爱祢 提交于 2019-12-02 20:58:19
I have an application that uses HTTPS for some of its routes in conjunction with the ssl_requirement plugin. It's deployed and is working fine in production. The question is how best to handle this in development, because at the moment I'm simply hacking my routes.rb to remove the :requirements key and obviously that's not very convenient or elegant: map.resource :session, :controller => 'session', :only => [:new, :create, :destroy], :requirements => { :protocol => 'https' } Ideally I'd like to be able to run the secure parts of my application in development on Mongrel without any changes. How

Recommendations (and Differences) between different Ruby on Rails Production Web Servers

大城市里の小女人 提交于 2019-12-02 16:49:35
Very soon I plan on deploying my first Ruby on Rails application to a production environment and I've even picked a webhost with all the managed server and Capistrano goodness you'd expect from a RoR provider. The provider allows for Mongrel, Thin, Passenger & FastCGI web servers, which seems very flexible, but I honestly don't know the differences between them. I have looked into them some, but it all gets a bit much when they start talking about features and maximum simultaneous requests - and that this data seems to vary depending on who's publishing it. I have looked at Passenger (on the

Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)

左心房为你撑大大i 提交于 2019-12-01 00:47:46
问题 I am using rail for teambox at centos 6.3 server, actually this is just a trial and error before applying it live. I'm using 2 virtual box that running on same centos version and exact copy, VM2 is only run mysql that will be remote from VM1 I have tried mysql connection #nc and it's connected VM1 (192.168.7.201) & VM2 (192.168.7.202 running MYSQL) I have bind-address on remote machine (VM2) in my.cnf with bind-address=192.168.7.202 here's my database.yml development: adapter: mysql host: 192

How do you restart Rails under Mongrel, without stopping and starting Mongrel

半城伤御伤魂 提交于 2019-11-30 19:27:24
Is there a way to restart the Rails app (e.g. when you've changed a plugin/config file) while Mongrel is running. Or alternatively quickly restart Mongrel. Mongrel gives these hints that you can but how do you do it? ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. You can add the -c option if the config for your app's cluster is elsewhere: mongrel_rails cluster::restart -c /path/to/config 1st discover the current mongrel pid path with something like: >ps axf | fgrep mongrel you will

How do I install this service_wrapper for mongrel/rails on my windows server?

狂风中的少年 提交于 2019-11-29 15:34:28
问题 I have been given the unpleasant task of installing a Rails 3 app I have written on Windows Server 2008 (definitely not my choice - was promised a linux server but I.T. pulled the rug out at the last minute so please don't suggest a change in environment as a solution). I followed the instructions on this blog post (with a few minor modifications) and now actually have my app up and running under Windows/IIS (proxying mongrel) after a great deal of frustration. The only thing remaining is to

Nginx学习之负载均衡fair模块

我只是一个虾纸丫 提交于 2019-11-28 19:11:17
Nginx学习之负载均衡fair模块 2017-04-10 20:27 写在开始 前面对Nginx的三种负载均衡实现做了一个简单的介绍,这里分享一个第三方的负载均衡模块nginx-upstream-fair。 模块介绍 The Nginx fair proxy balancer enhances the standard round-robin load balancer provided with Nginx so that it will track busy back end servers (e.g. Thin, Ebb, Mongrel) and balance the load to non-busy server processes. 简单翻译一下,fair采用的不是内建负载均衡使用的轮换的均衡算法,而是可以根据页面大小、加载时间长短智能的进行负载均衡。 下载地址: 解压: unzip nginx-upstream-fair-master.zip 模块安装 未安装Nginx 切换到Nginx目录执行一下操作 配置: ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr

Install Mongrel in Ruby 1.9.3

南楼画角 提交于 2019-11-28 12:08:55
How can I successfully install Mongrel for ruby 1.9.3 Here's the error: Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for main() in -lc... yes creating Makefile make compiling http11_parser.c compiling http11.c http11.c: In function ‘http_field’: http11.c:70:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c:71:3: error: format not a string literal and no format arguments [-Werror=format-security] http11.c:77:22: error:

Serving Large Files Through Nginx via Rails 2.3 Using x-sendfile

两盒软妹~` 提交于 2019-11-28 07:01:05
Let's say I have a Rails 2.3.2 application fronted by nginx and served by mongrel in which I need to serve a large static file through Rails (to control access to it). I want the Rails app to delegate the transfer of the file to nginx, to avoid blocking the mongrel instance. The available information seems contradictory and incomplete. This post shows how to do it with Apache, and hints that it can also be done with ngninx - but no examples. This post and this post show how to do it using the a plugin that apparently Rails 2.3 makes uncessary. This post suggests that maybe there isn't support

Rails: Unable to access log file

99封情书 提交于 2019-11-28 06:57:39
I get the following error when restarting my rails app. I've had this problem before, on another server with another app, but can't remember what the problem was, or how I solved it. Rails Error: Unable to access log file. Please ensure that /apps/staging/releases/20090310162127/log/staging.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. I'm deploying to a mongrel cluster with capistrano on Ubuntu. When I do ls -l /apps/staging/releases/20090310162127/log/staging.log the result is: -rw-rw-rw- 1 me grp 51 Mar 10