Skip to content

Commit

Permalink
fix deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexki committed Feb 1, 2013
1 parent 013a1fa commit 73fdc93
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/deploy.rb
Expand Up @@ -31,12 +31,13 @@
deploy.task :full do
transaction do
update_code
deploy.web:disable
# deploy.web:disable
symlink
cpdbconfig
migrate
end
restart
deploy.web:enable
# deploy.web:enable
cleanup
end

Expand All @@ -59,6 +60,13 @@
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :app do ; end
end

desc "Copy the release database.yml file into place after the code deploys."
task :cpdbconfig do
db_config = "#{shared_path}/database.yml"
run "cp #{db_config} #{release_path}/config/database.yml"
end

end

desc "Copy the release database.yml file into place after the code deploys."
Expand Down

0 comments on commit 73fdc93

Please sign in to comment.