Apache + FastCGI + RoR

Discussion in 'Ruby' started by Mohammad Khan, Nov 17, 2005.

  1. First question:

    FastCgiServer /users/foo/rails/public/dispatch.fcgi -initial-env
    RAILS_ENV=3Dproduction
    Do I need define this for every vhost,
    or just only one in httpd.conf?
    If I need to define it once, what should be the path?
    I am confused as I have dispatch.fcgi in each of the public direcotry
    of my vhosts.


    Second question:

    Can I run 2 of my vost in development envionment, 1 in test envionment
    and another 2 in production environment?
    If so, how?

    Thanks,
    Mohammad Khan, Nov 17, 2005
    #1
    1. Advertising

  2. Mohammad Khan

    gregarican Guest

    Mohammad Khan wrote:

    > First question:
    >
    >
    > FastCgiServer /users/foo/rails/public/dispatch.fcgi -initial-env
    > RAILS_ENV=production
    > Do I need define this for every vhost,
    > or just only one in httpd.conf?
    > If I need to define it once, what should be the path?
    > I am confused as I have dispatch.fcgi in each of the public direcotry
    > of my vhosts.
    >
    >
    > Second question:
    >
    >
    > Can I run 2 of my vost in development envionment, 1 in test envionment
    > and another 2 in production environment?
    > If so, how?
    >
    >
    > Thanks,




    You might have better results posting this to the Rails mailing list at
    http://lists.rubyonrails.org/mailman/listinfo. Ditto for your dupe
    message.
    gregarican, Nov 17, 2005
    #2
    1. Advertising

  3. sorry for the dupe..
    it was a mistake.. i didn't realize gmail really accepted my first message.



    On 11/17/05, gregarican <> wrote:
    > Mohammad Khan wrote:
    >
    > > First question:
    > >
    > >
    > > FastCgiServer /users/foo/rails/public/dispatch.fcgi -initial-env
    > > RAILS_ENV=3Dproduction
    > > Do I need define this for every vhost,
    > > or just only one in httpd.conf?
    > > If I need to define it once, what should be the path?
    > > I am confused as I have dispatch.fcgi in each of the public direcotry
    > > of my vhosts.
    > >
    > >
    > > Second question:
    > >
    > >
    > > Can I run 2 of my vost in development envionment, 1 in test envionment
    > > and another 2 in production environment?
    > > If so, how?
    > >
    > >
    > > Thanks,

    >
    >
    >
    > You might have better results posting this to the Rails mailing list at
    > http://lists.rubyonrails.org/mailman/listinfo. Ditto for your dupe
    > message.
    >
    >
    >
    Mohammad Khan, Nov 17, 2005
    #3
  4. Como'n guys,
    Say something !!




    On 11/17/05, Mohammad Khan <> wrote:
    > First question:
    >
    > FastCgiServer /users/foo/rails/public/dispatch.fcgi -initial-env
    > RAILS_ENV=3Dproduction
    > Do I need to define this for every vhost,
    > or just only once in httpd.conf?
    > If I need to define it once, what should be the path?
    > I am confused as I have dispatch.fcgi in each of the public direcotry
    > of my every vhost.
    >
    >
    > Second question:
    >
    > Can I run 2 of my vost in development envionment, 1 in test envionment
    > and another 2 in production environment?
    > If so, how?
    >
    > Thanks,
    >
    Mohammad Khan, Nov 20, 2005
    #4
  5. Mohammad Khan

    James Britt Guest

    James Britt, Nov 20, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl Youngblood

    Apache/FastCGI with Ruby on Windows

    Carl Youngblood, Aug 28, 2003, in forum: Ruby
    Replies:
    0
    Views:
    120
    Carl Youngblood
    Aug 28, 2003
  2. Jonas Hartmann
    Replies:
    6
    Views:
    401
    Jonas Hartmann
    Jun 25, 2005
  3. Mohammad Khan
    Replies:
    0
    Views:
    104
    Mohammad Khan
    Nov 17, 2005
  4. Blazer
    Replies:
    0
    Views:
    116
    Blazer
    Jul 21, 2006
  5. Snoop1990 Snoop1990

    Ruby on Fastcgi (Apache)

    Snoop1990 Snoop1990, Dec 29, 2007, in forum: Ruby
    Replies:
    2
    Views:
    96
    Snoop1990 Snoop1990
    Dec 30, 2007
Loading...

Share This Page