Permalink
Browse files

fix servers:setup task for customized deploy_to paths

Previously this would break with custom paths, which is annoying
for multistage configurations like:

    set :deploy_to, "/etc/httpd/conf/apps/#{application}-#{stage}"
  • Loading branch information...
1 parent 442043a commit 105d2c62754b3c3fba943be34245de6481c7da83 @ches ches committed Oct 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/railsmachine/recipes.rb
@@ -82,7 +82,7 @@
Used to configure your deployment environment in one command.
DESC
task :setup do
- sudo "chown -R #{user}:#{user} #{deploy_to.gsub(application,'')}"
+ sudo "chown -R #{user}:#{user} #{File.dirname(deploy_to)}"
deploy.setup
begin
db.setup

0 comments on commit 105d2c6

Please sign in to comment.