Permalink
Browse files

putting this back in as passenger is being a bitch about this not-hav…

…ing-a-database thing.
  • Loading branch information...
1 parent 59fedfa commit c7c694fa9e163f34ecd81ecac2596395cab1d033 @rick committed Jun 25, 2009
Showing with 11 additions and 0 deletions.
  1. +11 −0 config/deploy.rb.production
@@ -3,11 +3,22 @@ set :deploy_to, "/home/eastcore/sites/parchmayfarmcenter/bingo"
set :repository, "git://github.com/rick/artgo.git"
set :web_command, "true" # disable dorking w/ apache
+set :config_files, ['database.yml']
+
namespace :vlad do
set :app_command, "/etc/init.d/apache2"
desc 'Restart Passenger'
remote_task :start_app, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
+
+ desc "Copy config files from shared/config to release dir"
+ remote_task :copy_config_files, :roles => :app do
+ config_files.each do |filename|
+ run "cp #{shared_path}/config/#{filename} #{release_path}/config/#{filename}"
+ end
+ end
+
+ task :migrate => [ :copy_config_files ]
end

0 comments on commit c7c694f

Please sign in to comment.