Displaying 20 results from an estimated 40000 matches similar to: "Re: Rails Digest, Vol 23, Issue 369"
2007 Feb 16
1
Starting / stopping background rb when apache starts/stops
Hello -
I would like to figure out a way to have backgroundrb start/stop with the
same UID that dispatch.fcgi uses, at the same point in time that apache is
started/stopped. I see a technique that seems plausable in this archive
message:
http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000723.html
which addresses the starting aspect, in a lazy fashion. That seems fine,
2005 Dec 12
4
Rails crashes over night?
I''m
running Ruby on Rails on Fedora Core 4 with lighttpd and fastcgi. I
also used the login generator (don''t know if relevant). I have the
following problem: At day time I work on the server and create/modify
ruby files on the server, all pages work fine. Than the next day I want
to open de server I get the error at the end of this message (on all
pages, including non protected).
2005 Dec 17
0
[rails|fcgi bug] Rails app not responding
Hello,
I really can't say if it's rails or fastcgi related, but sometimes
rails is not responding.
See some output from ./script/process/reaper:
./script/process/reaper
Restarting [22804] /usr/local/bin/ruby18 /usr/home/www/public/dispatch.fcgi
Restarting [22806] /usr/local/bin/ruby18 /usr/home/www/public/dispatch.fcgi
Restarting [22807] /usr/local/bin/ruby18
2006 Jan 22
0
problem setting up lighttpd and rails app.
I am trying to set-up lighttpd and rails to work with fastcgi.
Here is what I am currently using for the virtual host definition. I
have gotten this from various websites. Sorry about the formatting I
can''t seem to control it with Thunderbird.
var.wholesale = "wholesale"
$HTTP["host"] =~ "^wholesale" {
server.document-root = "/var/lighttpd/"
2007 May 08
1
Can't get Ruby on Rails with Apache and FastCGI
Hi!
Environment
=========
Solaris 10
Apache 2.2.0 with fcgid_module
Ruby 1.8.4
Rails 1.2.3
I am trying to get FastCGI working. Initially I used "dispatch.cgi"
successfully but when I switched to "dispatch.fcgi" I get
====================================================
Application error
Rails application failed to start properly
2006 Mar 26
3
help with rails and apache
i just went through the tutorial on
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel
but i''m having some problems.
when i add:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>
under the line that says:
LoadModule fastcgi_module libexec/mod_fastcgi.so
apache fails to restart.
i went on
2007 Mar 15
0
Rails on Win2k/IIS 5.0
I''ve got Rails running pretty well, but with a catch that is kind of
specific to our environment, maybe someone can help.
Basically we have a Win2k/IIS5.0 server (this is the c: drive) that
only has the site configuration and the perl, php, .net and ruby stuff
on it. All the data files are supposed to be on our netApps filer
(call this filer1). This is our written IT Security Policy and
2006 Jun 01
4
Ruby on Rails strange issue
Hello,
I just installed Ruby on Rails and created the new repository.
I wanted to use Ruby on Rails with FCGI
The repository was created in /path/to/public_html
ls /path/to/public_html/ :
app cgi-bin config doc log public README script
tmp
asd components db lib logo.jpg Rakefile README_LOGIN test
vendor
I installed fcgi support for ruby on rails and
2006 Jun 28
2
Avoiding killall
When I started Rails Development, I needed to use ''killall -g
dispatch.fcgi'' whenever I made a change to a Model to see the change on
my website. Now it seems I need to do this to see any change to the
Controller as well.
Any ideas of what I am doing wrong???
--
Posted via http://www.ruby-forum.com/.
2005 May 26
1
No response from Apache 2 / fcgi / rails...
Hello! I''m struggling here with getting Typo running on a Red Hat
server under Apache 2 / fcgi... Every time I try to load the public
home page, I get this in my error log:
[Thu May 26 00:20:52 2005] [error] [client 24.22.74.233] FastCGI:
comm with (dynamic) server "/home/httpd/vhosts/brigleb.com/httpdocs/
public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec)
2006 Feb 27
3
Rails via Lighttpd
I am trying to get Rails running through Lighttpd, on a Suse 10 box
running Rails 1.0.0 and Lighttpd 1.4.10
I followed the instructions in the wiki
(http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep getting the
same error:
linux:/etc/lighttpd # lighttpd -f lighttpd.conf
2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for:
2005 Mar 05
1
How to provide Rails hosting on Apache/FastCGI enviroment?
Hi, folks.
I am running a small Web Hosting service personally.
I hope to provide rails service on apache/fcgi to my hosting
users. So, I''ve been testing to setup rails application, and
there was no problem. But with Rails version 0.10.0 release,
previous way doesn''t work.
Following is a scenario which worked well before, but now beats me.
1. Eric has his own rails directory
2005 Jul 28
1
Rails+Apache 2+FastCGI on Fedora Core 3 Linux: Has anyone got it working well?
Hi All,
I have a Rails application that needs to be served from a
Fedora Core 3 Linux server. The application runs well as a
"plain" CGI application.
My next step was to speed things up with FastCGI installed
via "gem install fcgi". (version 0.8.6.1).
That approach lead to this error in the fastcgi.crash.log:
Dispatcher failed to catch: undefined method
2006 Feb 16
11
Multiple Rails app on the same server?
I have a rails app on a debian server running lighttpd and I''m trying to
set up typo so that it also works (with a different url). I have 4 URLs
running -- let''s call them foo.com, bar.com, www.typo.com and
php.typo.com
I am starting lighttpd by going into the directory where my foo.com app
is and typing either ruby script/server or script/server -e production
-- either
2006 Jun 29
0
can''t run rails application
Hello,
I''m trying to run Rails on Apache 2.0 with mod_fcgid. It seems like
fcgi has been set up ok, but still I can''t run my rails application.
Here is my httpd.conf
IPCCommTimeout 40
IPCConnectTimeout 10
DefaultInitEnv RAILS_ENV production
SocketPath /tmp/fcgidsock
<VirtualHost *:80>
<Location />
RewriteEngine On
2006 Aug 09
0
FastCGI - how to relocate dispatch.fcgi outside of rails app
Howdy.
Due to a rather unique hosting setup, I need to relocate the
dispatch.fcgifile to a directory outside of
/path/to/application/public.
The setup looks like:
/path/to/content/RailsApp/ -- all application files
/path/to/fcgi-bin/RailsApp/ -- dispatch.fcgi
I''ve modified dispatch.fcgi to find environment.rb; however, all requests
for static files (index.html, javascripts, etc) fail
2007 Mar 29
1
How to restart server programmatically?
I need to be able to restart my server based on a specific database change.
I''ve been trying a call to system("script/process/reaper -a graceful -d
dispatch.fcgi") but that raises a transaction error which rolls back the
save. I wasn''t aware that after_save would rollback. That''s potentially
useful but pretty much not right now. Here''s my code:
def
2006 Apr 10
0
Problem with freezing rails to vendor/rails
my vendor dirrectory. But for some reason my app is still using the
locally installed gem versions of Rails on TXD. Running svn propget
svn:externals vendor returns:
rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-1/
Here is the error I''ve been getting (app started using the TXD rails.sh
script):
NoMethodError (undefined method `const_load!'' for
2006 Jan 18
1
How should permissions be set for a Rails app?
I''m a newbie and I''m having a tough time figuring out how the
permissions need to be set to get a Rails app running on a shared host.
I''m attempting to follow the fastCGI instructions here:
http://wiki.rubyonrails.com/rails/pages/FastCGI
Now, I''m getting this error:
-------------
You don''t have permission to access /dispatch.fcgi/ on this server.
2007 Jan 19
2
Rails Deploy Files - Remove?
So, now that we''re using Mongrel and not the horrid FCGI, do I really
need these files in my Rails apps:
dispatch.fcgi
dispatch.cgi
.htaccess
??
The .htaccess file has rules for rewriting that look FCGI based. For
Mongrel, I do my Apache re-writing in my config file, right?
is there a reason to include these files at this point?
Hunter