My previous error is cleared.. but i have a new one coming up.. First of all iam using a windows system... and my deploy.rb is something like this
set :application, "payrollpilot.com" set :user, "xyz" set :repository, "[email protected]:xyz/abc/payrollpilot.git" set :branch, "master" #set :port, 4001 ssh_options[:port] = 4001 default_run_options[:pty] = true set :scm_verbose, true ssh_options[:username] = "xyz" ssh_options[:verbose] = :debug set :use_sudo, false set :deploy_to, "/home/xyz/public_html/payrollpilot" set :scm, :git set :deploy_via, :remote_cache set :runner, user role :app, application role :web, application role :db, application, :primary => true namespace :deploy do desc "Passenger restart application" task :restart do run "touch #{current_path}/tmp/restart.txt" end desc "create symlinks for files and folders shared across releases" task :symlink_shared do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/ database.yml" run "ln -nfs #{shared_path}/lib/smtp_tls.rb #{release_path}/lib/ smtp_tls.rb" end end after 'deploy:update_code', 'deploy:symlink_shared' Now, my cap deploy:setup works fine also the cap deploy:check passes through without any errors but when i give cap deploy:cold i get the following error : failed: "sh -c \"cd/home/xyz/public_html/payrollpilot/releases/ 20090529042233; rake RAILS_ENV=production db:migrate\"" on payrollpilot.com i further continued gving cap deploy ignoring the above error to see the effect, but when i tried to access the site modrails threw the error Error message: No such file or directory - /home/xyz/public_html/payrollpilot/ releases/20090529052607/config/database.yml Exception class: Errno::ENOENT so on inspection of the /releases/2009.../config directory i found that database.yml is an empty file though the dir command lists the file in the config directory. but the shared/cached-copy/config/database.yml exists with the right contents i have presented the situation as well as i could pls help to get out of this thnks for ur concern. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
