lib/kapify/pg/configuration.rb in kapify-0.0.13 vs lib/kapify/pg/configuration.rb in kapify-0.0.14
- old
+ new
@@ -32,18 +32,18 @@
after "deploy:setup", "kapify:pg:create_user"
after "deploy:setup", "kapify:pg:create_database"
end
desc "Generate the database.yml configuration file."
- task :setup, roles: :app do
+ task :setup, roles: [:app, :resque_worker] do
run "mkdir -p #{shared_path}/config"
kapify_template("pg", "database.yml.erb", "#{shared_path}/config/database.yml")
end
after "deploy:setup", "kapify:pg:setup"
desc "Symlink the database.yml file into latest release"
- task :symlink, roles: :app do
+ task :symlink, roles: [:app, :resque_worker] do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
after "deploy:finalize_update", "kapify:pg:symlink"
end