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...
I'm working on a Rails application and it is currently hosted on a shared hosting. However, it is getting a lot of features that requires reasonable processing and I'm thinking of move it to a VPS, clouded server.
I have no experience on server management, but, since it is a simple application, I'd like to manage it myself. Googling a bi...
Ok, this one's a little ridiculous, and I'm almost afraid no one will believe me. But here it goes:
I have written a Ruby Rails application that handles content for tons of domains. Now I know this breaks the cardinal rule of Rails, but each domain has all of its information housed in a config file. I know this is probably wrong, but...
I'm relatively new to RoR (my first experience far from pleasant) and just stuck with a simple file upload application.
When I upload file I can see a temp file created on the server but it's smaller than the file I upload. I assume I get this error 'cause browser just closes connection on me before the whole file gets transmitted ( it h...
in my test mongrel server output for a page, 8 queries are listed but many more DB are counted:
Query1
Query2
...
Query8
Rendered Partial1
Rendered Partial2
..
Rendered Partial40
Completed in 4754ms (View: 308, DB: 2246) | 200 OK
how do I show all the queries that are running?
Also, is there documentation for what the View; count repr...
I'm just curious if Passenger does or can utilize clusters like Mongrel can. If so, how can I specifically run Passenger with clusters? I'm using nginx. And if not, how does it outperform Mongrel so well?
...
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 convenie...
I've got rails app I'm working on locally and uses geokit to talk to google and geocode addresses. I run the development environment using script/server (which runs mongrel_rails) on port :3000. Everything works just fine.
Now, I've setup a staging environment and cap deploy that to a diff directory on localhost via ssh. The deploy work...
Hello all,
This is my first stab at Ruby on Rails. Just deployed a very simple app to Heroku.
The thing is that my app runs flawlessly on mongrel development; When I run it with "mongrel_rails start -e production" however, I get the error "We're sorry, but something went wrong."
For the life of me, I couldn't debug this. Heroku logs i...
I created a Ruby-on-Rails project using NetBean 6.8, which operates as expected on port 3000.
I created a second RoR project in the NetBeans IDE to experiment with some ideas; it operates on port 3010. Unfortunately, the webserver won't start. It returns the following:
/Library/Ruby/Site/1.8/rubygems.rb:827:in `report_activate_error'...
Hi,
after posting a question related to nginx, I'm a bit further with my investigations: The problem is, that the merb framework timeouts after about 30 seconds. If i tell the underlying nginx-server not to timeout, merb does, and I can't find a way to tell it not to; I need to do requests that take up to some minutes.
Any hints? Thank...
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 'rake gems:refresh_specs' to fix this.
=> Debugger enabled
=> Call with -d to detach
=> Ctrl-...
I have a rails app that uses freetds to establish an ODBC connection into a SQL Server Database. This app is on a server running under mongrel, in theory.
If I start the app with:
sudo mongrel_rails start -e development -p 9000 -d
I get
S1000 (0) [unixODBC][FreeTDS][SQL Server]Unable to connect to data source
However, when run w...
I use mongrel to run a ROR website. My apps need to respond to urls generated by third parties. There is double quote in the url, and mongrel will error on such urls. Since I use apache on top of mongrel. How can I use the mod_rewrite in apache to encode the url?
...
Hi all,
I'm currently using Mongrel to develop a custom web application project.
I would like Mongrel to use a defined Http Handler based on a regular expression. For example, everytime someone calls a url like http://test/bla1.js or http://test/bla2.js the same Http handler is called to manage the request.
My code so far looks a like...
My mongrels were not responding, and neither god restart nor cluster restart made a big difference. I dug a little deeper, than i realized that i had plenty of zombie processes.
app 29607 27948 0 19:45 ? 00:00:00 [mongrel_rails]
app 30578 21681 0 19:52 ? 00:00:00 [mongrel_rails]
app 30704 21405 0 19:53 ...
Have an app that has "listings" - think classified ads - and each listing has a list of tags.
The following code fails when I run the app in production mode, but works fine under development mode
uninitialized constant ActiveRecord::Acts::Taggable::InstanceMethods::TagList
Extracted source (around line #45):
42:
43: <...
Hi,
I am trying out Mongrel and using the following code:
require 'rubygems'
require 'mongrel'
class SimpleHandler < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |head, out|
head["Content-Type"] = "text/plain"
out.write("Hello World!\n")
end
end
end
h = Mon...
My Rails app makes use of ImageMagick, but the app fails on trying to execute the ImageMagick command ("identify"). I fixed this issue in development (where I'm running Apache/Passenger) by passing the following environment variables in my Apache config:
SetEnv MAGICK_HOME /opt/local/var/macports/software/ImageMagick/6.5.9-0_0+q16
S...
We started to use memcache-client in our rails app and it works just fine with "script/server" but "mongrel_rails start" fails with an error.
In environment.rb we define "memcache-client" and version "1.8.1". Gem list shows that the gem is installed: memcache-client (1.8.1).
If run with "script/server" everything works but with "mongr...