Skip to content

Commit

Permalink
[passenger] repo fix
Browse files Browse the repository at this point in the history
[repo] typo in readme
(cherry picked from commit 08c49a3)
  • Loading branch information
NS committed Mar 29, 2012
1 parent c9c17b5 commit af9666b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions cookbooks/app_passenger/providers/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@
action :code_update do
deploy_dir = new_resource.destination

log " Creating directory for project deployment - <#{deploy_dir}>"
directory deploy_dir do
recursive true
not_if do ::File.exists?(deploy_dir.chomp) end
end

# Reading app name from tmp file (for recipe execution in "operational" phase))
# Waiting for "run_lists"
Expand All @@ -208,12 +203,9 @@
deploy_dir = "/home/rails/#{app_name.to_s.chomp}"
end

# Preparing dirs, required for apache+passenger
directory "#{deploy_dir.chomp}/shared/log" do
recursive true
end

directory "#{deploy_dir.chomp}/shared/system" do
# Preparing project dir, required for apache+passenger
log " Creating directory for project deployment - <#{deploy_dir}>"
directory "/home/rails/" do
recursive true
end

Expand All @@ -223,7 +215,6 @@
action :capistrano_pull
app_user node[:app_passenger][:apache][:user]
environment "RAILS_ENV" => "#{node[:app_passenger][:project][:environment]}"
create_dirs_before_symlink
persist false
end

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/repo/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

== DESCRIPTION:

This cookbook provides abstract 'repo' resource for managing code download from GIT, SVN or ROS code repositoritories
This cookbook provides abstract 'repo' resource for managing code download from GIT, SVN or ROS code repositories.


== DETAILS:
Expand Down

0 comments on commit af9666b

Please sign in to comment.