Questions tagged [mongrel]

Mongrel is an open-source HTTP library and web server written in Ruby.

It is used to run Ruby web applications and presents a standard HTTP interface. This makes layering other servers in front of it possible using a web proxy, a load balancer, or a combination of both, instead of having to use more conventional methods employed to run scripts such as FastCGI or SCGI to communicate.

265 questions
597
votes
1 answer

Ruby on Rails Server options

The whole issue of setting up a development server for my Ruby on Rails application confuses me. There are WEBrick, Mongrel, Passenger, Apache, Nginx and many more I am sure, and I don't really understand the different roles they play. I started off…
pingu
  • 8,719
  • 12
  • 50
  • 84
22
votes
4 answers

gem install mongrel fails with ruby 1.9.1

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…
atlantis
  • 3,056
  • 9
  • 30
  • 41
17
votes
6 answers

LoadError running Mongrel with Rails3 and Ruby 1.9.2

I am new to programming (previously only did html/css/design) trying to start learning RoR via the book Simply Rails 2. However I want to start with the most recent versions of Ruby(1.9.2) and Rails (3) so I am forced to get everything configured…
tehaaron
  • 2,250
  • 10
  • 31
  • 54
16
votes
4 answers

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

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,…
Ash
  • 24,276
  • 34
  • 107
  • 152
15
votes
2 answers

Rails: Unable to access log file

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…
Michiel de Mare
  • 41,982
  • 29
  • 103
  • 134
13
votes
3 answers

Weird problem with Rails app and Mongrel

I originally posted a question relating to this problem on serverfault.com: https://serverfault.com/questions/152587/apache-mod-proxy-to-another-server I have since realized that this is not an issue with my server setup, but my rails application. I…
trobrock
  • 46,549
  • 11
  • 40
  • 46
13
votes
1 answer

How do you choose your HTTP server in Sinatra?

I am running a Sinatra application locally. Ever since I installed Thin, my Sinatra app always uses it as the web server. However, I have been having performance issues with Thin serving the large amount of static files required by my application,…
sffc
  • 6,186
  • 3
  • 44
  • 68
13
votes
2 answers

Difference between Nginx and Mongrel?

I often read about Nginx and Mongrel being used together. Can someone explain to me how they are different? Why is Mongrel needed? Why is it not advisable to have Nginx directly communicate to the many Rails servers?
user782220
  • 10,677
  • 21
  • 72
  • 135
12
votes
6 answers

How do I fix this error? config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file

I get this error when launching my Mongrel server... $ script/server --debugger => Booting Mongrel => Rails 2.3.5 application starting on http://0.0.0.0:3000 config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run…
Ganesh Shankar
  • 4,826
  • 8
  • 43
  • 56
12
votes
2 answers

How do you handle SSL in development?

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…
John Topley
  • 113,588
  • 46
  • 195
  • 237
11
votes
1 answer

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

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…
Rich Apodaca
  • 28,316
  • 16
  • 103
  • 129
11
votes
5 answers

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

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…
Mahardhika
  • 111
  • 1
  • 1
  • 3
10
votes
2 answers

Sinatra, progress bar in upload form

I'm developing a Sinatra app that consists of an upload form, with a progress bar indicating how much of the upload has completed. The process, as described by ryan dahl, is the following: HTTP upload progress bars are rather obfuscated- they…
asymmetric
  • 3,800
  • 3
  • 34
  • 52
10
votes
6 answers

What deployment directories do you use for Rails applications (deploying to a debian box)?

I wonder what's the best deployment directory for Rails apps? Some developers use directories such as /u/apps/#{appname}. Are there any advantages when using /u/apps/#{appname} instead of /var/www/#{appname} or other OS default…
Christoph Schiessl
  • 6,818
  • 4
  • 33
  • 45
9
votes
3 answers

Install Mongrel in Ruby 1.9.3

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…
xirukitepe
  • 1,575
  • 7
  • 26
  • 54
1
2 3
17 18