similar to: XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"

Displaying 20 results from an estimated 600 matches similar to: "XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production""

2006 Aug 05
0
RMagick and FastCGI on Windows
I''m having trouble getting RMagick to work on my Apache/FastCGI setup. If I top Apache and start WEBrick on the exact same app/dirs, it works fine. I installed RMagick following the instructions here: http://rmagick.rubyforge.org/install-faq.html#win That gives me: C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\lib
2006 Jan 19
0
Rails with Apache - application failed to start
Hi, I followed the instructions in the article http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows to make rails work with apache: Install Apache2, latest stable version Install the latest Ruby Installer for Windows Install the latest Ruby For Apache In httpd.conf I have: FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 \ -initial-env
2006 Apr 08
3
FastCGI issues
I am attempting to get Rails running on Windows with an Apache 2 server. I seem to be having some trouble, and in spite of my best efforts to find a solution, I could not. I believe that I configured Apache correctly. I have included EnableSendfile Off EnableMMAP Off Win32DisableAcceptEx FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1 -processSlack 1 \ -initial-env
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
Hi, I''ve generated a new Rails app and dummy controller "foo" with method "hello". I am trying to run it under Apache/2.0.53 with fastcgi, and getting the index.html page when I hit http://localhost/foo/hello, or for any other request (http://localhost/kdjfslkfjs). Also, there is nothing in the rails logs, and no errors in the apache logs. Relevant bit of
2006 Feb 03
0
FastCgiExternalServer vs. static/dynamic
I''m trying to switch to the "external" fcgi method. In httpd.conf, this works: FastCgiServer "/tmp/rubystuff/testapp/public/dispatch.fcgi" -idle-timeout 20 -processes 4 FastCgiConfig -maxClassProcesses 2 -maxProcesses 2 -minProcesses 1 -processSlack 1 This fails with an error (the public/500.html page is returned): FastCgiExternalServer
2005 Jun 30
4
A Memoir on FastCGI and Apache
With the release of our filmfury.com project, I''ve been trying to rise to the stature of a true system administrator in the last couple of days (haha). I''m trying to understand how all of the pieces to this apache/fastcgi deployment fit together. Here''s what I''ve learned so far: * You need a separate FastCGI server for each Rails application on your
2003 Oct 13
1
OpenSSH_3.7.1p2, Solaris 8: non-interactive authentication meth od prompts for a password
Hi, The OpenSSH_3.7.1p2, Solaris 8 case: non-interactive authentication method (publickey) works for root only ---------------------------------------------------------------------------- --------- We installed OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c We need to copy a file by SFTP from App server to a DB server with passwordless method. [cbfe-dev-app01 (client), user cbfesit]
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 Jan 11
3
Idle Apache+FastCGI sleeping?
Wondering: Does Apache shut down inactive FastCGI processes if it doesn''t get any requests for a while? My app works fine if it''s being used regularly, but it will respond very slowly to the first request after an hour of zero traffic. Is there a way to keep FastCGI ready all the time, even when there haven''t been any requests for a while? We''re deploying
2006 Jul 28
7
Uploading 2+ files simultaneously
I''m having trouble uploading 2+ files simultaneously (from different client machines)... the upload page just hangs... I''m running... - ruby 1.8.4 (2005-12-24) [i686-linux] - rails 1.1.4 - red hat el 4 - apache - fcgi (0.8.7, 0.8.6.1) - firefox 1.5.0.5 - httpd.conf <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi FastCGIConfig
2006 Feb 08
5
debugging 500 Internal Server Error when dispatch.fcgi run?
I''m trying to get my Ruby on Rails application to work under Apache. It works fine when run as WEBrick ("ruby script/server"). As suggested in http://www.ocssolutions.com/support/ruby/troubleshooting-ruby-on-rails.php , I tried running dispatch.fcgi on the command line. When I run it, no matter where I run it, it outputs: 500 Internal Server Error Both the #! (shebang)
2006 Mar 03
2
ENV[''RAILS_ENV''] pb
Hello, I want to put my app in production mode. So I write this line in environment.rb : ENV[''RAILS_ENV''] = "production" I restart webrick. If I write <%= ENV.inspect %> I have the correct "RAILS_ENV"=>"production" But browse my site and look the log, the development.log is still growing and the production.log stay to 0 ko
2006 Feb 10
1
Setting RAILS_ENV before running script/server in the comma
I want to set an environment variable before running a script for example setting ENV[''RAILS_ENV''] = production in the command line before running script/server so that it would start in production mode. Is there a way to do this from the command line so that I don''t have to modify the file? Thanks, Brian -- www.kenlet.com
2011 Feb 07
1
[Rails3] How to define RAILS_ENV for rake?
With Rails3, it is no longer possible (well soon to be deprecated) to do: $ RAILS_ENV=test rake db:migrate So what''s the new way of doing it? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 May 30
0
Performance problem with Apache-FCGI-Rails
We have our Rail 1.0 application running on Apache 1.3 with FastCGI. The httpd.conf has : <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc FastCgiServer /root/zs/public/dispatch.fcgi -processes 2 FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production -idle-timeout 120 -maxClassProcesses 2 -killInterval 300 </IfModule> The dispatch.fcgi is the default provided in the
2005 Aug 11
0
fastcgiconfig in .htaccess?
Digging through some mailing list archives, I found a solution[1] (maybe) to my occasional fastcgi deaths, which return 500''s. Since I don''t have access to httpd.conf on my hosted server, is it possible to modify my .htaccess file in order to increase the idle-timeouts for fastcgi? What is the syntax? I tried adding the line: FastCgiConfig -idle-timeout 1200 -maxClassProcesses
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 Aug 31
2
How to set RAILS_ENV for different directories (fcgid)
Hello! I want to use the same application in two environments (production and development) on the same server (apache2 with fcgid) in different (aliased) directories. Is there a way to specify RAILS_ENV inside my <Directory> directives? I have the line DefaultInitEnv RAILS_ENV production in my httpd.conf but I want one of the directories to be development. Setting the ENV var directly in
2006 May 16
4
Model class conditional on ENV["RAILS_ENV"] == "test"
I am trying to setup a model class that I want to inherit from ActveRecord when in the test mode, and not inherit when in production and/or development mode. The reason for this is so that I can use fixtures to test that the logic in the model is working correctly, but I don''t want the database table around during production (and normal development). I would like to do this the
2010 Feb 18
4
Rails 3 "RAILS_ENV not defined by config/boot" error
I''m running unicorn and unicorn-rails 0.96.1 and the latest Rails 3 beta gem. ?Firing up unicorn_rails spews "RAILS_ENV not defined by config/boot". ?I know this is likely a result of RAILS_ROOT being deprecated?in Rails 3 but I can''t seem to config my way around it. I''m sure other people must have run into this before. ?Is there a quick fix? Thanks