Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7614007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:17:36+00:00 2026-05-31T02:17:36+00:00

All this weekend I have been trying to setup a Rails 3.0.4 app in

  • 0

All this weekend I have been trying to setup a Rails 3.0.4 app in production on a Dreamhost shared server. I have followed this wiki article to have my own set of rubygems setup on the server. Furthermore, I also installed rvm and ruby 1.9.2 using the following command:

bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
rvm use 1.9.2 --default

Doing ruby -v returns ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux], so I believe rvm has installed the version of ruby correctly.

I created my app forcing the use of a mysql database, and then generated an articles controller:

rails new test_app -d mysql
cd test_app
rails g scaffold articles title:string body:text

Now when I visit the domain I see the usual “Welcome aboard You’re riding Ruby on Rails!” screen, but if I click the “About your application’s environment” link I get what looks like to be some kind of passenger error:

Ruby (Rack) application could not be started
The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message may have been written to the web server’s log file. Please check the web server’s log file (i.e. not the (Rails) application’s log file) to find out why the application exited. If that doesn’t help, then please use the backtrace below to debug the problem.

Lastly, if I SSH into the server and just do rails s I can see the app functioning correctly on port 3000.

I have never put an app into production before, so I am very confused. Is passenger not using the RVM version of ruby? Is these even possible on a DreamHost shared server? What do I have to do to rectify this problem?

Any help is appreciated, Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:17:38+00:00Added an answer on May 31, 2026 at 2:17 am

    I’ve been able to successfully get a Rails 3.2.2 app deployed to Dreamhost. Here are some notes I’ve written for myself.


    On the local development machine

    First off, Dreamhost Passenger is based on Ruby 1.8.7, not Ruby 1.9.2. Because of this, Dreamhost won’t like some of your Ruby code because it has some of the new key value syntax. So look for any code like this:

    key: "value"
    

    and change it to Ruby 1.8.7 style (which Ruby 1.9.2 also can understand):

    :key => "value"
    

    I found that you can find this code by doing something like this…this can be done more efficiently on a *nix box, but this is how I did it in Windows with some *nix commands installed:

    egrep -r -i "^.*\w: .*$" . | grep rb
    

    After fixing the syntax, you’ll want to bundle up your gems so Dreamhost doesn’t complain about your rack version.

    $> bundle package
    

    On the Server (aka Dreamhost)

    (Get your files on dreamhost. Personally, I commit and push changes into a git remote repository, then git pull them down to a private folder on dreamhost. After they are there, I copy them into the Passenger folder)

    Then I run these commands from the Rails application folder (/home/username/www.myapp.com/):

    $> bundle install --path vendor/bundle --local
    $> rake db:migrate RAILS_ENV="production"
    $> bundle exec rake assets:precompile
    $> touch tmp/restart.txt
    

    Voila, this seems to work. If it still isn’t working, check the log/production.log.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been stuck on this all weekend and failed miserably! Please help me
I have been searching all weekend for the solution to this quandry and have
Okay, I've been struggling with this all weekend, and I've gotten plenty of help
hello all this seems to be my problem I have a table in mysql
New to all this so forgive my ignorance. I am trying to figure out
Ok, so I found something weird over the weekend. I have a WPF app
I will be deploying my web application this weekend on a testing server. I
I am at my wits end here. I've been trying to look at all
I'm running Visual Studio 2010 on a terminal server, and have been, with relatively
I have a Rails app (2.3.8) where I send emails using ActionMailer from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.