Search code examples
ruby-on-railsrubypassengermod-rails

says if i develop a Ruby on Rails application using Rails 2.3.2, will that usually be compatible with Passenger on my hosting company?


says if i develop a Ruby on Rails application using Rails 2.3.2, will that usually be compatible with Passenger on my hosting company?

If i ssh to my hosting company and type rails -v, i get 2.2.2... so looks like they might be using Rails 2.2.2.

So if i develop a Rails app on my Macbook and ftp all files over there, will the Passenger there usually work well with the generated code with the current version of Rails?


Solution

  • Freeze rails into vendor/rails using the built in rake task. That way your app will ue the version of rails you want it to no matter where you deploy it.

    rake rails:freeze:gems
    

    And the easiest way to do a specific version I know of.

    rake rails:freeze:edge RELEASE=2.3.2.1
    

    Now your version of rails will go with you where you send your app.

    You can unpack other gem dependencies into vendor/gems for any gem you are using and want to be sure that it is available where ever you deploy the application.

    rake gems:unpack
    

    And to ensure their dependencies go to:

    rake gems:unpack:dependencies
    

    I would also suggest that you verify that they are running the latest version of passenger.