We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f21661 + 67ab203 commit 1eeabadCopy full SHA for 1eeabad
config/deploy.rb
@@ -18,14 +18,19 @@
18
role :db, "72.249.191.152", :primary => true
19
20
set :keep_releases, 6
21
-after "deploy:update", "deploy:cleanup"
+after "deploy:update", "deploy:link_config"
22
23
namespace :deploy do
24
desc "Restarting mod_rails with restart.txt"
25
task :restart, :roles => :app, :except => { :no_release => true } do
26
run "touch #{current_path}/tmp/restart.txt"
27
end
28
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
+
34
[:start, :stop].each do |t|
35
desc "#{t} task is a no-op with mod_rails"
36
task t, :roles => :app do ; end
0 commit comments