I am trying to deploy a site using capistrano with git. I can do the
cap deploy:setup, that works OK. Then I invoke a cap deploy:check,
which at the very end says the following:
"The following dependencies failed. Please check them and try again:
--> `/home/entouchd/git' could not be found in the path
(entouchdesigns.com)"
I'm on a shared server with Site5 and have installed git in my home
directory on the shared server with site5 at the following location /
home/entouchd/git
Any ideas or suggestions would be appreciated.
Here is my deploy.rb file:
set :application, "entouchdesigns"
set :repository, "[EMAIL PROTECTED]:/mtmcfarl/entouch-designs.git"
# Site5 username and Site5 domain
set :user, "entouchd"
set :domain, "entouchdesigns.com"
set :scm, :git
set :deploy_via, :remote_cache
set :deploy_to, "/home/#{user}/apps/#{application}"
role :app, domain
role :web, domain
role :db, domain, :primary => true
ssh_options[:paranoid] = false
# Set the Git path
set :scm_command, "/home/#{user}/git"
set :local_scm_command, :default
# Necessary to run on Site5
set :use_sudo, false
set :group_writeable, false
# Less releases, less space wasted
set :keep_releases, 2
default_run_options[:pty] = true
set :runner, nil
set :rails_env, "production"
task :set_permissions do
donothing = true
end
task :after_update_code, :roles => :app do
run "cp /home/#{user}/_resources/.htaccess #{release_path}/
public/.htaccess"
run "cp /home/#{user}/_resources/dispatch.fcgi #{release_path}/
public/dispatch.fcgi"
run "sed 's/# ENV\\[/ENV\\[/g' #{deploy_to}/current/config/
environment.rb > #{deploy_to}/current/config/environment.temp"
run "mv #{deploy_to}/current/config/environment.temp #{deploy_to}/
current/config/environment.rb"
run "find #{release_path}/public -type d -exec chmod 0755 {} \\;"
run "find #{release_path}/public -type f -exec chmod 0644 {} \\;"
run "chmod 0755 #{release_path}/public/dispatch.*"
end
namespace :deploy do
after "deploy:update", "deploy:site5:fix_permissions",
"deploy:site5:kill_dispatch_fcgi"
desc <<-DESC
Site5 version of restart task.
DESC
task :restart do
site5::kill_dispatch_fcgi
end
namespace :site5 do
desc <<-DESC
Kills Ruby instances on Site5
DESC
task :kill_dispatch_fcgi do
run "pkill -9 -u #{user} -f dispatch.fcgi"
end
desc "Fix g-w issues with Site5"
task :fix_permissions do
run "cd #{current_path}; chmod -R g-w *"
end
end
end
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---