forked from ubergesundheit/dialogmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
possibly working capistrano deployment
- Loading branch information
1 parent
5a0258d
commit ddd4428
Showing
4 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
desc "Chown the apps dir to apps user" | ||
task :chown_apps_dir_to_apps do | ||
on roles(:all) do | ||
sudo :chown, "-R apps:apps #{deploy_to}" | ||
end | ||
end | ||
|
||
desc "Chown the apps dir to deploy user" | ||
task :chown_apps_dir_to_deploy do | ||
on roles(:all) do | ||
if test "[ -d #{deploy_to} ]" | ||
sudo :chown, "-R deploy:deploy #{deploy_to}" | ||
end | ||
end | ||
end |