similar to: Why you MUST use SCGI for Rails development

Displaying 20 results from an estimated 10000 matches similar to: "Why you MUST use SCGI for Rails development"

2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t been able to find an answer to. Do I need to have either scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to work? If yes, why? I have installed the scgi server and i can get the service to run, i have also installed the following mod_fastcgi/2.4.2 mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2005 Nov 21
10
Anybody using SCGI in production?
Or does anybody prefer fastcgi/fcgi? I''m using webrick for development, but plan on using scgi when I switch to production (because it appears to be an update to fastcgi, and I couldn''t get fastcgi working anyhow). thanks csn __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this! I''m having trouble getting scgi and lighttpd running on windows - here''s what I did: On Win XP, I installed ruby, rubygems, and setup my rails app. All works fine with webrick. I then did: gem install cmdparse and gem install highline (as required for the scgi_rails gem according to
2005 Aug 08
5
In-Line List Editing with AJAX
I''m trying to write an interface for editing many-to-one relationships with AJAX. Picture the to-do editor in Backpack (and, to a lesser extent, Basecamp) and you''ll have a good idea of what I''m trying to do. I''ve almost got everything working: the ''edit'' link hides the stored data and replaces it with a form, and the data is updated in the
2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
I''ve run into a problem on one of my development machines. I''m trying to run multiple rails apps on one dev machine that runs Windows. Problem is that is seems that I can only run one scgi_service at a time, meaning that only one of my apps will function at a time. Anyone know how I can get around this, other than getting a *nix box (which I should have soon, hopefully) ?
2005 Dec 23
10
Extending model
Hi, I''m looking for a way to extend one of my models to allow some level of abstraction between what goes into it and how it is stored. For example, say I have a Product and I want to set it''s price. A person using the website will type the price in euros. Internally, I''d like to store the price as an integer value of cents. I can currently do this with some ugly code
2007 Dec 27
4
validates_file_format_of only when is there an image
i have a model with this: file_column :image validates_file_format_of :image, :in => ["gif", "png", "jpg"] If inthe form the user not insert the image i receive an error. If i remove: validates_file_format_of :image, :in => ["gif", "png", "jpg"] it works. Is possible do the validation only when user insert the image in form? i
2005 Dec 28
8
Rails app lags after inactivity
Hi all. I have two Rails applications. Each is on its own VPS hosted by Pipespring (excellent service btw). My app runs lightning quick - AFTER the first load. If I visit my site after a period of inactivity (i.e. no visitors to my site), it takes up to 10 seconds to load that first time. After that I can hop around with no problems. Has anyone run into this before? Ideas? - Rabbit
2005 Nov 06
11
Ideal Rails / Apache config?
Hi All, Just about to set up RoR on our server and was wondering what the ideal setup for RoR is these days? Apache 1? Apache 2? fCgi? Any guidance would be helpful! Thanks, -Adam
2005 Sep 21
4
Rails controller with Win32 COM object calls
Has anyone had any experience with making calls to Win32 COM object in a rails controller. I have no problem making the calls using the WIN32 module, however I do seem to have some memory leaks, when the COM object being called at some point makes use of SafeArrays. The same method calls in VB,Visual C++ don''t produce the same memory leaks. I realize this might seem a little odd, but
2007 Jun 07
6
Can't download files with send_data or send_file
I have a form_remote_tag that calls a method to print out a csv file for download. If I tell the form_remote_tag to update a div the data comes up in that div, but otherwise I can''t get the browser to acknowledge the sent file. >From view: <%= form_remote_tag :url => {:action => "csv_dump" }%> <%= submit_tag "Download Complete List" ,:name
2005 Dec 28
11
some notes about rails, apache, fastcgi and windows
hello. i''d like to share some feelings of mine after a couple of *weeks* intermittent attempts to have rails applications working on windows (XP) with fastcgi performances under apache (2.0). i''d say the software stack i''m using now will be fairly common as more and more new rails developers will join the bandwagon. what is stunning me is the fact that, even if
2006 Apr 12
4
Instant Rails SCGI Problem
I have installed instant rails and configured it http://instantrails.rubyforge.org/wiki/wiki.pl?Getting_Started I can get typo and webrick to work on webrick localhost:3000 but cant get anything to work with scgi. When i start the scgi server i get a blank dos window screen. When i type www.mycookbook.com into the browser i get the following Unable to connect Firefox can''t
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and Apache. After running for some time (more than a day), the SCGI process stops with the following error (from scgi.log): -- [ERR][24189] Collecting thread: Too many open files [ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in `accept''
2005 Oct 17
12
SCGI Rails Runner 0.4.1 (getting closer)
Hi All, Alright, this release is getting closer. It''s nearly complete except the docs on my site aren''t written yet. There is however a full README with RDoc documentation and several packages including a gem release. Please check out the latest release at: * Announcement: http://www.zedshaw.com/ * README and RDoc:
2006 Mar 31
35
Frustrated with RoR environment splintering
Why isnt the RoR community focusing on robust and scalable mod_perl style of Apache environment, rather then splintering all over the place with lighthttp, mongrel, WEBrick, SCGI, fcgi, etc??? Its frustrating as someone who is trying to migrate to RoR. Its very unlikely I would ever get a contract to work on any webserver except Apache, so it would seem logicaly to focus all our efforts to
2006 Apr 03
9
Problem with Windows not finding methods
I am running (testing) a noob-tube for myself as follows: Windows XP SP2 lighty ruby 1.8.x rails 1.1 scgi I have everything working fairly well, but with one minor exception: the actions that I have defined as follows are not found. class MytestController < ApplicationController def index render_text "Hello Nurse!" end def dilbert render_text "Dilbert
2006 Jan 31
11
Mongrel HTTP Library 0.2.0 (Fast And RubyForgified)
Hi Everyone, I''m happy to announce the 0.2.0 release of Mongrel -- the fastest HTTP 1.1 library Ruby has yet. http://mongrel.rubyforge.org/ -- ruby docs lame page. http://rubyforge.org/projects/mongrel/ -- project page. Special thanks to Tom Copland for setting up my RubyForge goodness, and to Why for kicking in time to get the Camping examples up to snuff. This release should
2009 Feb 19
3
Associated child records not created on creation of a parent.
I am trying to create a record with association. Within the create method, I would also like to pre-populate dependent (has_many) records from a template in the database. The child records are <u>mysteriously rolled back </u> if I insert them in a loop. If I try to insert a single child record, it works.I have read the books and tried to google my way out of this but am at a dead
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an Application Error message when I try to navigate to a url which should be taken care of by my newly created controllers. For instance, I wanted to test RoR out so I created a MyTest controller which should allow me to navigate something like: http://localhost/rubytest/MyTest but it does not. I have no problem getting