Rails3 app deploy : how to?

I know many people are asking this kind of question. I searched in
this forum and some others in the web but i did found something clear
enough for my “ror’s power” (i’m not completly new but real
close :wink: )
Well, I’m developing my application on os x, i’m using svn (team
choice) for versionning but i will need to deploy on linux server
(with passenger).
How to do that ? :slight_smile:

I need it to be “automatic” (with a script ?). Will i have a pb with
gems ? I’m thinking about the oracle one (64 bits against 32 ?) for
example. What do i need to do if i add a gem on os x to be added
automatically on the linux server ? Bundle ?

Well If someone can help me it would be so cool. :wink:


PS : I’m french so sometimes my english is not good … :wink:

If someone has an idea or had already done that, just let me know.


On Wed, Sep 29, 2010 at 1:45 PM, dme69 [email protected] wrote:

If someone has an idea or had already done that, just let me know.

Here is an example Capistrano recipe I use on one of my sites:

cat config/deploy.rb

require ‘bundler/capistrano’

set :application, ‘destiney’
set :scm, :git
set :repository, “[email protected]:gdonald/#{ application }.git”

set :deploy_to, “/rails/cap_#{ application }”
set :user, ‘destiney’

role :web, ‘destiney.com
role :app, ‘destiney.com
role :db, ‘destiney.com’, :primary => true

ssh_options[:keys] = %w(/home/destiney/.ssh/id_dsa)
ssh_options[:paranoid] = false
ssh_options[:port] = 22

namespace :deploy do
task :restart, :roles => :app do
run “cd #{ release_path } && RAILS_ENV=production rake db:migrate”
run “touch #{ release_path }/tmp/restart.txt”

Greg D.
destiney.com | gregdonald.com

Thanks Greg,
I will take a look a that.

Best regards.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs