I found there are some Ruby programs are running in this development
machines. Now I need to add some functionality into the Ruby program,
but I don’t know where to look into its starting program or its main
body of the program.
It seems you have a Ruby on Rails web app running on your machine. The
dispatch.fcgi file is, as its name says, a dispatcher for your rails
app and it’s handled by your apache’s mod_fcgi.
It seems you have a Ruby on Rails web app running on your machine. The
dispatch.fcgi file is, as its name says, a dispatcher for your rails
app and it’s handled by your apache’s mod_fcgi.
Hope it helps.
Thiago
Hi in the same directory as the dispatch.cgi file, I also found a file
dispatch.rb a ruby script file. But I don’t know how this both
dispatch.cgi and dispatch.rb file are related.
In the dispatch.cgi file, what command/ruby script does it dispatched?
The dispatch.rb file has the following implementation:
As was said before, you have a rails application. It’s not neccessary
to dive into deep parts of the code. You’d rather read some tutorial
on rails, so you know how to write models, controllers, views and
helpers. That way you’ll faster see the forest, instead of individual
trees When you’ll know this, you can find the appropriate stuff,
judging by the url that you call.
small hints:
all the interesting stuff is in the app directory. urls are sent to
controllers - /controller (=class)/action (=method)/all other
parameters
most of the things you see are in views, the common parts are
shared in laayouts
the data are in models
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.