bscofield (owner)

Revisions

gist: 17954 Download_button fork
public
Public Clone URL: git://gist.github.com/17954.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set :application, "forever_home"
set :repository, "git@github.com:railsrumble/leaf-on-the-wind.git"
 
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/var/www/#{application}"
 
# If you aren't using Subversion to manage your source code, specify
# your SCM below:
set :scm, :git
set :branch, "railsrumble"
 
set :user, 'deploy'
set :rails_env, "production"
set :scm_verbose, true
 
role :app, "66.246.75.29"
role :web, "66.246.75.29"
role :db, "66.246.75.29", :primary => true
 
ssh_options[:keys] = %w(/Users/bscofield/.ssh/id_rsa)
 
namespace :deploy do
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end
 
after "deploy:update_code", "app:symlink"
 
namespace :app do
  desc "Make symlinks"
  task :symlink do
    run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
  end
end