similar to: ENV[''RAILS_ENV''] pb

Displaying 20 results from an estimated 20000 matches similar to: "ENV[''RAILS_ENV''] pb"

2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to because of memory leaks in 0.13.1 under linux environment. Right now the application is running fast and steady under linux, with no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has become unusable under Windows (our main development environment) where I am getting a lot of segmentation faults. BUT the problem
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 Jan 11
10
Recommend server for developing RoR on win
Hi all, can you recommend me which web server config to use for developing rails on windows machine. I tried webrick, which is good but it''s annoying because console window is in taskbar for every site running and it have to be started manually. Apache with CGI is to slow and using FastCGI on the other side brings me lot of problems, like randomly not working RoR sites. Any help is
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers, I used to develop with a local out-of-the-box Apache and load times were pretty slow (like a few seconds each page). "Well, it''s the price to pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I installed SCGI, and now I''ve got the best of both worlds: rails development env uses my very latest modifications, while SCGI ensures I
2006 May 11
3
LightHTTPD FastCgi Error in Production Mode
I''ve been banging my head against the following for about 8 hours now, and have exhausted my web research options: /usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21:in `require'': no such file to load -- /usr/home/matthew.feadler/rails/avclfc/public/../config/environment (LoadError) from /usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21
2005 Apr 28
5
fcgi woes
Hi all I''m running rails on apache with fcgi under windows I have a module which I''ve included in one of my models, but if I change any code in the module, i have to restart apache in order for the changes to take effect. i tried some suggestions from folks in the IRc channel, namely to put RAILS_ENV = ''development'' in environment.rb but that doesn''t
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 Sep 06
4
Setting Product Env
When I am using my rails models in my worker class, it appears the background worker class is always using development no matter what I do. I set background.yml to production. I even have ENV[''RAILS_ENV''] ||= ''production uncommented in environment.rb. I don''t have the development db even created on my production box, so not sure where it is getting 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,
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 May 14
6
HELP!! Serious memory leak in my rails app!!
I''m having a huge memory leak problem with a rails application I''m developing! I first noticed that when running under webrick (via script/server) there was a fast memory leak.. several users using the app for a few hours would use 2 gig of memory!!! I searched the archives and found that some users found that it could be avoided by saying --daemon when launching webrick..
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 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 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have read forums, followed How-To''s all in vain. I am hoping someone can help me out. I am getting the Rails Welcome screen, but when trying to go to any other url, I get the 500.html message. Take a look for yourself at http://66.139.78.237 and click on "about your application''s environment".
2007 Jan 29
1
rails_env configuration conflict...
I''ve found a conflict in the way the configuration file is handled, in particular effecting the setting of the ENV[''RAILS_ENV''] value. When I attempted to run a worker in production, it would run fine the first time - the second time would fail because it was trying to access the development database. I had created a ''backgroundrb_prodcution.yml'' file
2006 Jun 15
6
Error in dispatch.fcgi...
Yesterday, our of nothing my server went down... Rails application failed to start properly Imediately i started checking my logs and found quickly that something was wrong with the dispatch.fcgi or its function. I use FCGI, and it had been working perfectly with Apache 2.0.55, MySQL 5.0, Ruby 1.8.2 and Rails 1.1.2. What really got me wondering was that I did nothing. One day it worked
2005 Dec 23
1
FastCGI and large file uploads
I use dreamhost for my hosting provider, and I am working on app where it requires large files (max 10 MB) to be uploaded to the server. As of right now the fastcgi processes are configured with: FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production \ -idle-timeout 120 -maxClassProcesses 5 -killInterval 300 My problem is that I try and upload a file via the web that is around 5 MB
2006 Aug 15
2
Apache & FCGI: Premature end of script headers:
Hi, I have quite a problem right now. After finish of development I installed rails with fcgi and apache on my production env. Everything seems to be configured ok, but once I while I get the famous error message: " Premature end of script headers: dispatch.fcgi" I cant see any generel configuration problem, as sometimes everything is running fine. Maybe it is a problem related to
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
Dears, Thanks to Demetrius (dema.ruby.com.br, see Taming FastCGI) I''ve a running FastCGI Rails 1.0 environment with : - Win XP "Professional" (just brand name) - Apache 2.0.55 (msi) - Ruby for Apache 1.3.1 - Database backend is now Oracle 8.1 Everything run fine with default environment, I''m confused for switching into ''production''. By default
2007 May 08
8
Running my app in "production" under webrick
hi, uncommenting the line ENV[''RAILS_ENV''] ||= ''production'', in environment.rb makes no difference to my rails app running under webrick, it still runs in development, and i have restarted the server. Does this line only apply to Apache? I dont have RAILS_ENV set, why is it allways running in development? Thanks -- Posted via http://www.ruby-forum.com/.