similar to: Setting CWD to be RAILS_ROOT for fastcgi/Apache

Displaying 20 results from an estimated 10000 matches similar to: "Setting CWD to be RAILS_ROOT for fastcgi/Apache"

2006 Apr 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All, Apache 2/FastCGI on Linux My fastcgi config. file is set up to run the "test" RAILS_ENV. When I go to access a view associated with a particular controller, I keep getting a ENOENT (file not found) error on a custom config. file that I am attempting to load. What I can''t figure out is why it can''t find the file. Here''s the code that loads it in my
2006 Apr 26
2
Routing to a static HTML file under RAILS_ROOT
I have a regular plain old static HTML file under my RAILS_ROOT that I would like to serve as itself (without any dynamic anything). How can I write a route to "pass the request through" succesfully. I tried map.connect ''path_to_file'', :controller => nil, :action => nil, :id => nil but that didn''t work. Also, note that I have this route
2006 Apr 13
1
What is the working directory for fastcgi procs w/Apache 2?
When running Apache and FastCGI with Rails, what determines the current working directory? Is there an easy way to discover which directory this is at runtime? WG -- Posted via http://www.ruby-forum.com/.
2006 Aug 03
1
Is it possible to interpolating variables in YAML files?
I''m attempting to store a value that''s dependent on an environment variable in a custom .yml file, like so: job_folder: "#{RAILS_ROOT}/jobs" Doesn''t seem to like that. Is there any way for me to have access to the RAILS_ROOT environment variable from inside of my configuration file? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
1
How to require a regular module into my controller?
I created a modules directory under my app. root (RAILS_ROOT/app) I''m trying to "require in" a module in that directory into my controller. I tried require ''modules/module.rb'' I tried require "#{RAILS_ROOT}/app/modules/ESimplyUtil" The module file is in modules/ESimplyUtil.rb. Is that the right name? Neither of these works. How can I
2006 Apr 03
1
Setting up FastCGI for RoR under Apache 1.3.34
All, I have all of the components that I need to install RoR under FCGI for Apache 1.3.34. I have: mod_fcgi 2.4.2 fcgi 2.4.0 (developer''s kit) ruby-fcgi-0.8.6 I am comfortable up to the point of installing mod_fcgi, however, I don''t understand how fcgi and ruby-fcgi will be used by mod_fcgi. How does mod_fcgi connect to fcgi and ruby-fcgi. I assume that there are
2006 Jul 25
3
+ camping 1.4.140 -- apache+fastcgi, lighttpd+fastcgi
Okay, I have tested mounting several of my apps under Lighttpd and Apache, both running FastCGI. I''m going to explain the configuration, but first: update. gem install camping --source code.whytheluckstiff.net == Mounting Root for Lighttpd+FastCGI == server.port = 3045 server.bind = "192.168.0.103" server.modules = (
2006 Apr 10
15
Apache/FastCGI still in development mode?
I''m running rails on RedHat ES3 managed by Plesk with Apache/FastCGI. I''ve followed the directions here: http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnPlesk And got everything working, but my application refuses to run in Production mode. It runs in development mode despite the fact that I''ve set: FastCgiServer
2006 Apr 12
2
IO.read fails on relative path in model object
All, I am attempting to do an IO.read call on a file inside of one of my model objects. I keep getting Errno::ENOENT The path I''m passing to IO.read is relative to RAILS_ROOT. Two questions: 1) This code was previously executing in my controller - it it significant that I moved it into my model? 2) Is there some way to verify which directory is the current directory for the
2006 Jun 15
6
Problem with lighttpd
I have a problem with lighttpd on OSX. Everything builds fine (and webrick runs just fine) but lighttpd barfs: edward-kenworthys-computer:~/Development/Ruby/pricematic/trunk edward$ script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown
2006 Mar 22
2
How to bypass routing for a particular request?
I would like to set up some my app. to display a standalone HTML page - not rendered through RoR per se. Something like render(:inline => some_Javascript_function... then in the Javascript some_Javascript_function, I want to open up a popup with the URL I specify. However, because it is a relative URL, it is going through the RoR routing algorithm. I don''t want that - can I
2006 Mar 13
2
Newbie: Can''t get file to upload
Since I can''t get the fancy upload progress thing to work, I thought that I would revert back to a regular file upload scenario. I have a very simple file upload form set up. It appears that my file parameter is coming into the controller as a string, not a file object. Here''s my view: <%= form_tag :action => ''save_HTML'', :multipart
2006 Mar 22
2
Successfully importing Rubyful Soup objects
All, At the top of my controller, I have: require ''rubygems'' require_gem ''rubyful_soup'' The rubyful_soup gem has been successfully installed. However, when I go to instantiate a class from it, using parser = BeautifulSoup.new(html) I get uninitialized constant BeautifulSoup Is there something else I need to do to see the symbols in the Rubyful Soup gem?
2007 Jul 26
1
autotest loosing RAILS_ROOT Constant?
I am having a weird error that I have not had before... I''m bouncing it off the list to see if anyone else has had it, or to give me some pointers about how to find it. Basically, AUTOTEST will run (RSpec mode), fine, then suddenly, will complain that RAILS_ROOT is undefined. Then I stop and restart it, with no code change... no problem. It happens on different specs where I use
2006 Feb 20
3
RAILS_ROOT
I just replied to someone about using send_file and while I was testing my solution I figured out that the controllers "current working dir" appears to be the root of the app. Then I saw a reply that Ezra sent to someone where he used RAILS_ROOT and I thought "duh, I''ve seen that before... shoulda used that". But, when I had an action print out RAILS_ROOT
2006 Mar 23
8
The fastcgi crash after few hours
I have this configuration on my server - Windows 2000 server - Apache 2.0.55 - MySQL 5.x - Rails 1.0 For the moment I have a rails app that run on Apache with fastcgi. After some hours i use the application the fastcgi go down and so the web app is so slow (with cgi). The error in RAILS_ROOT/log/fastcgi.crash.log is: [23/Mar/2006:09:11:23 :: 5668] Ignoring unsupported signal USR1.
2006 Apr 10
1
Capistrano/SwitchTower "current" dir deployment question
All, I have successfully executed the "deploy" task in Capistrano/Switchtower to establish a symbolic link named "current" which points to the current version of my app. on my remote server. My app. was already deployed to the existing Rails root directory (call it "appname") though. I have Apache fronting my app. through a virtual host whose doc. root is itself
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a ActiveRecord::ConnectionNotEstablished when I try to run it on lighttpd. Here''s the app''s lighttpd config: $HTTP["host"] =~ "(www\.)?mysite\.com" { server.document-root = "/home/pergesuteore/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => (
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
2006 Apr 04
10
Ruby server infrastructure evolution -> app. servers?
All, Just musing about this whole FastCGI thing (that I hadn''t even thought of since 1999 when looking at OpenMarket for a customer and even then it was "old"), and wondering when we might see projects/products that attempt to provide Ruby application services in a J2EE-like container. I see the Cerise project - any interesting information on that? I''m assuming