# Rails3 app deploy : how to?

**URL:** <https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673>\
**Category:** Rails\
**Created:** [September 27, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673 "2010-09-27T23:59:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dme69](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dme69](https://www.ruby-forum.com/u/dme69)\
**Post date:** [September 27, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673/1 "2010-09-27T23:59:33Z")

</div>

Hello,  
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 😉 )  
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 ? 🙂

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. 😉

Dominique.

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

---

<div class="post-metadata">

**Author:** ![dme69](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dme69](https://www.ruby-forum.com/u/dme69)\
**Post date:** [September 29, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673/2 "2010-09-29T20:47:12Z")

</div>

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

Dominique.

---

<div class="post-metadata">

**Author:** ![dme69](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dme69](https://www.ruby-forum.com/u/dme69)\
**Post date:** [September 29, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673/3 "2010-09-29T21:13:32Z")

</div>

On Wed, Sep 29, 2010 at 1:45 PM, dme69 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Well,  
> 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, “removed\_email\_address@domain.invalid:gdonald/#{ application }.git”

set :deploy\_to, “/rails/cap\_#{ application }”  
set :user, ‘destiney’

role :web, ‘[destiney.com](http://destiney.com)’  
role :app, ‘[destiney.com](http://destiney.com)’  
role :db, ‘[destiney.com](http://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”  
end  
end

–  
Greg D.  
[destiney.com](http://destiney.com) | [gregdonald.com](http://gregdonald.com)

---

<div class="post-metadata">

**Author:** ![dme69](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@dme69](https://www.ruby-forum.com/u/dme69)\
**Post date:** [October 6, 2010, 11:29am UTC](https://www.ruby-forum.com/t/rails3-app-deploy-how-to/195673/4 "2010-10-06T11:29:38Z")

</div>

Thanks Greg,  
I will take a look a that.

Best regards.  
Dominique.
