[Rails-deploy] Re: Windows/Apache2/MySql/RoR Help? (Plus rant!!)
Those instructions work great, but if you read the OP, you will see that he needs help with Windows. While helpful, those instructions do not work for Windows deployments because mongrel_cluster doesn't work. starting port 3000 c:/ruby/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.2 /lib/mongrel_cluster/init.rb :95:in ``': Exec format error - mongrel_rails start -d -e development -p 3000 -P tmp/pids/mongrel.3000.pid -l log/mongrel.3000.log (Errno::ENOEXEC) On 9/19/07, Robert [EMAIL PROTECTED] wrote: First install Ruby: http://rubyinstaller.rubyforge.org/wiki/wiki.pl Then install Rails gem install rails --include-dependencies Then mongrel and mongrel_cluster gem install mongrel -y gem install mongrel_cluster -y create a rails app: rails appname type ruby script/server bam it's running. Now configure Apache server with mod_proxy http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/ All this was available with the help of google. ;) If you need to know how to add gems, libraries, language syntax, etc - there is a wealth of information out there, plus books. Robert On Sep 18, 8:43 am, Dave Smith [EMAIL PROTECTED] wrote: I have a pre-existing installation of apache2.2/php/mysql on Windows Server 2003. I just want to install rails to work with it. Does anyone know of any decent information about how to do this? RANT It doesn't inspire confidence in Rails when I search the web for a way to get RoR working with a pre-existing installation of Apache and all I can find is a million people telling me to go get InstantRails! Instant Rails is, apparently, for people who don't already have a server and who just want to open a folder and be done with it... in other words, it is for unserious developers with no established business in web development. And apparently, these are the only people using Ruby. As someone with no established business in web developent, I can say firsthand that this makes me question why serious people aren't using Rails or asking questions about how to get it working with their php servers... why aren't they migrating? /RANT Okay... thanks for any info! -- Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Deploying Rails group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Deploying in Production Level (Ideas please)
nginx + mongrel_cluster is a really good solution if you don't need apache OR don't want to / can't install Apache 2.2. Apache 2.2+mongrel_cluster is great if you need to use Apache, but nginx is lighter and easier to configure (it does less stuff). Stay away from mod_ruby or fastcgi. mod_ruby will run slow. fastcgi is just difficult to scale and tends to be a bit flakey. (On a shared host, it may be your only option though). Grab the beta of Deploying Rails Applications. http://www.pragprog.com/titles/fr_deploy Most of your questions should be answered there. On 10/15/07, Ruwan Janapriya [EMAIL PROTECTED] wrote: Thanks a lot... Please let me know others ideas as well! regards, J. On 10/16/07, CCH [EMAIL PROTECTED] wrote: Hi ace Using Apache 2.2x (with mod_proxy_balancer) + a pack of mongrels seems to be the recommended way... On Oct 15, 12:46 pm, ace [EMAIL PROTECTED] wrote: Dear All, I just started using rails. After surfing and reading a lot I need some feedback from you guys. In production level what is the best configuration to use Rails with maximum performance. Correct me if I am wrong please. 1. Ruby on Rails, with lighttpd/mongrel, a database 2. Ruby on Rails, mod_ruby with Apache2, a database 3. Ruby on Rails, FastCGI with Apache2, a database I know there want be any wrong answers. regards, J. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Deploying Rails group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Deploying on windows 2000 server
+1. Mongrel can install as a service on Windows. There is no clustering support for Mongrel on Windows (though I hear it's coming...) and so you just install mongrel as a service once for each port. You can then use the mod_proxy_balance approach in Apache 2.2. I'll be talking about deployment on Windows at RailsConf apparently, so come see me if you're going :) On 5/3/07, jrimmer [EMAIL PROTECTED] wrote: Unless you have to, as in you have a gun to your head or I suppose an unreasonable client, I would recommend NOT deploying Rails via FCGI on Windows. We tried for a while and were never happy with either the ongoing management or reliability. I recommend the basic Rails deployment profile: Apache, mod_proxy_balancer, and Mongrel. Easy to setup and very reliable. There are a number of resources out there on how to set this up. On May 3, 5:02 am, August Lilleaas [EMAIL PROTECTED] wrote: I'm not a windows user, and I've never deployed on windows. Made this small app for a company, and they want it deployed on one of their own servers - a windows server. I've installed this Rails Prod Win package. When browsing tohttp://localhost, I get the 500 error page from the .htaccess. This is what the apache error log says:http://pastie.caboo.se/58525 After googling around for a while, I found this small fcgi script to test if fcgi is working -http://pastie.caboo.se/58526- and it is. Browsing to that file displays the stuff, and does the incremental count on each request. No clue at all about this pipe 1 stuff in the error messages. Anyone has a clue at all? I have absolutely no idea where to start, so _any_ help on this will be greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Deploying Rails group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Deploying on windows 2000 server
Pretty much what I use, almost exactly. Would love to update my original documentation, but there's this book that's supposed to be coming out that contains the updates. I was just asked to present 2 days ago so please, no heckling. I'm nervous enough as it is. :) On 5/3/07, jrimmer [EMAIL PROTECTED] wrote: I'll be attending your session, Brian, but primarily just to heckle and correct you. I should be easy to spot as I'll be the incredibly intelligent guy that impressed you so much. Or... uh... something like that. Thanks for your original documentation on deploying Rails on Windows, it was VERY helpful! As for the lack of Mongrel 'clustering' support... I wish the name would change as 'cluster' is far too overloaded a term, I prefer 'packs'. It's simply an issue of process management so a few batch files will do the trick. I have four batch files for the installation, removal, starting, and stopping of a Mongrel pack. Their contents are as follows: # # mongrel_install.bat # @echo off call mongrel_rails service::install -N app name-9000 -c app path - p 9000 -e production call mongrel_rails service::install -N app name-9001 -c app path - p 9001 -e production ... call mongrel_rails service::install -N app name-9016 -c app path - p 9016 -e production sc config app name-9000 start= auto sc config app name-9001 start= auto ... sc config app name-9016 start= auto # # mongrel_remove.bat # @echo off call mongrel_rails service::remove -N app name-9000 call mongrel_rails service::remove -N app name-9001 ... call mongrel_rails service::remove -N app name-9016 # # mongrel_start.bat # @echo off net start app name-9000 net start app name-9001 ... net start app name-9016 # # mongrel_stop.bat # @echo off net stop app name-9000 net stop app name-9001 ... net stop app name-9016 On May 3, 10:38 am, Brian Hogan [EMAIL PROTECTED] wrote: +1. Mongrel can install as a service on Windows. There is no clustering support for Mongrel on Windows (though I hear it's coming...) and so you just install mongrel as a service once for each port. You can then use the mod_proxy_balance approach in Apache 2.2. I'll be talking about deployment on Windows at RailsConf apparently, so come see me if you're going :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Deploying Rails group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---
[Rails-deploy] Re: Win32 deployment
Yeah... well lighttpd as the balancer is crappy anyway. It just doesn't perform well cos there are serious bugs in the proxy system. Apache + mod_proxy_balancer is the way to go. On 2/8/07, Marlon Moyer [EMAIL PROTECTED] wrote: Hey Brian, I must say that I definitely gleaned a lot of knowledge from your site. I ended up going with an Apache front to several mongrel processes. This really is an easy way to deploy. Luckily our last asp app is on it's way out and I think I'll be able to replace IIS with Apache. I just need to figure out how to do ssl client certs with it now. I had first tried to use Lighttpd as the balancer with your instructions, but I guess they've changed up the syntax of the configuration file. I also found some additional information here: http://brainspl.at/articles/2006/06/12/apache2-2-vhost-template-for-mongrel-clusters On 2/8/07, Brian Hogan [EMAIL PROTECTED] wrote: I'll plug my stuff again http://www.napcs.com/howto/rails/deploy/index.html And there's a book coming out that will cover this topic shortly. On 2/6/07, Aníbal Rojas [EMAIL PROTECTED] wrote: I have run Apache on W2K, it is really easy to install, and stable. Its configuration is the same than linux so it should not be a problem. Putting IIS behind is a very good idea. -- Aníbal Rojas http://www.rubycorner.com http://www.hasmanydevelopers.com On Feb 6, 10:00 am, Robby Russell [EMAIL PROTECTED] wrote: Marlon Moyer wrote: yes. Aside from ColdFusion and the new RoR apps that I'm creating, we're a 100% microsoft shop. Is it possible to run both IIS and Apache on the same win32 server? I've never tried that, but as long as it wouldn't interfere with the normal IIS operation, I think I could get that done. As for the reverse proxy, that would only hit 1 mongrel process right? Apache (2.2) has a proxy balancer, so you could proxy several mongrel instances. Here is a blog post that I just found from a quick google search. * http://rubyurl.com/z1M You'll want to look at these sections. Proxy balancer://mongrel_cluster BalancerMemberhttp://127.0.0.1:8000 BalancerMemberhttp://127.0.0.1:8001 BalancerMemberhttp://127.0.0.1:8002 /Proxy and where it's using rewrite to talk to the balancer. Putting Apache on port 80 and hiding IIS behind it might be a good solution for many of your hosting needs in your all-windows environment. Good luck! Robby -- Robby Russellhttp://www.robbyonrails.com/http://www.planetargon.com/ -- Tradin' my time for the pay I get, Livin' on money that I ain't made yet, Gotta keep going, gotta find my way, But I'll live for the end of the day. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Deploying Rails group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~--~~~~--~~--~--~---