Deployment on Dreamhost - Application Error

First off, deployment is not trivial so if you are an intern you should
be doing this under the supervision of a more experienced
developer/system adm. In other words, your boss made a mistake and
assigned you to the wrong position or is deliberately using you as cheap
workforce (which happens a lot, btw).
My suggestion is that you talk to your boss and ask him/her to hire some
kind of special support from Dreamhost to get this done because as an
intern you don't have the necessary experience.

Tony Stricker wrote:

Pepe Junty wrote:

First off, deployment is not trivial so if you are an intern you should be doing this under the supervision of a more experienced developer/system adm. In other words, your boss made a mistake and assigned you to the wrong position or is deliberately using you as cheap workforce (which happens a lot, btw).
My suggestion is that you talk to your boss and ask him/her to hire some kind of special support from Dreamhost to get this done because as an intern you don't have the necessary experience.

my boss asked me to make some web forms for us to sign up new affiliates and customers with - i made the decision to learn rails on my own. as an intern, i'm given a lot of freedom which i couldn't be more grateful for. the web forms weren't urgent, and i was looking for a learning experience. i had heard about how intuitive/convenient rails was and decided that i would take the time to learn it. that's why i really like my boss and my internship - he gives me the opportunity to learn. if had any idea how much of a nightmare it would be to deploy this, i wouldn't have even considered doing this. we're a small, start-up company so just "hiring some special support" isn't an option. this was my own mistake, i really really really just want to fix it.

i called dispatch.fcgi and this is what i got -

[catwoman]$ cd /home/tstrick4/holidayautosasia.pooldrive.com/log
[catwoman]$ tail -f fastcgi.crash.log
[07/Jul/2009:16:15:52 :: 2998] starting
[07/Jul/2009:16:22:00 :: 2998] Dispatcher failed to catch: (Interrupt)
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:77:in `each'
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:77:in `process_each_request'
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:76:in `catch'
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:76:in `process_each_request'
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:51:in `process!'
  /home/tstrick4/.gem/ruby/1.8/gems/rails-2.3.2/lib/fcgi_handler.rb:23:in `process!'
  ./dispatch.fcgi:32
stopping after unhandled signal

my code is attached, if it helps. i really appreciate any help you guys can give me, i've been google searching and trying to figure this out for a week.

AFAIK, Dreamhost no long use fcgi. They moved over to Passenger some months ago.

They do have several wiki articles about deploying rails apps to their passenger servers. Unfortunately I don't have the links to hand.

As far as I know, Dreamhost only runs Linux servers. Assuming you're
on one, take a look at this article:

http://wiki.dreamhost.com/Passenger

You'll probably want to vendor Rails before switching, as Dreamhost
may not have the latest version of Rails installed.

--Matt Jones

http://wiki.dreamhost.com/Passenger

You'll probably want to vendor Rails before switching, as Dreamhost
may not have the latest version of Rails installed.

Passenger can make it pretty easy to deploy on Dreamhost.

Just log into your Dreamhost Web Panel select "Manage Domains", and
edit the settings of the domain that you want to host with Passenger.

In the settings select the check box for "Ruby on Rails Passenger
(mod_rails)?" and set "Specify your web directory:" to "/home/username/
mysite.com/public".

Once you have that all set up, you can also use Capistrano to help you
deploy the site. Here is a sample deploy.rb file:

http://gist.github.com/145348

Hope that helps.

-Tony Pelaez