Skip to content

Commit 1eeabad

Browse files
author
Dana Jones
committed
Merge branch 'master' of [email protected]:railstutor
2 parents 0f21661 + 67ab203 commit 1eeabad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config/deploy.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,19 @@
1818
role :db, "72.249.191.152", :primary => true
1919

2020
set :keep_releases, 6
21-
after "deploy:update", "deploy:cleanup"
21+
after "deploy:update", "deploy:link_config"
2222

2323
namespace :deploy do
2424
desc "Restarting mod_rails with restart.txt"
2525
task :restart, :roles => :app, :except => { :no_release => true } do
2626
run "touch #{current_path}/tmp/restart.txt"
2727
end
2828

29+
desc "Re-link config files"
30+
task :link_config, :roles => :app do
31+
run "ln -nsf #{shared_path}/config/database.yml #{current_path}/config/database.yml"
32+
end
33+
2934
[:start, :stop].each do |t|
3035
desc "#{t} task is a no-op with mod_rails"
3136
task t, :roles => :app do ; end

0 commit comments

Comments
 (0)