I'm trying to deploy via capistrano by using "cap production deploy",
but am running into an error concerning a file ,,,,/script/process/
reaper which it claims is supposed to be on the server. I know that
this has worked on another PC, but am not sure what I did
differently.
I'm running Ruby v1.8.7 and Capistrano v2.5.10
Any thoughts?
thanks in advance,
-Chris
Output:
$ cap production deploy
[Deprecation Warning] Naming tasks with before_ and after_ is
deprecated, please see the new before() and after() methods.
(Offending task name was after_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is
deprecated, please see the new before() and after() methods.
(Offending task name was after_default)
* executing `production'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "svn info myrepository -rHEAD"
checking for svn... yes
* executing "if [ -d /var/www/apps/aerosoft/shared/cached-copy ];
then svn update -q -r8 /var/www/apps/aerosoft/shared/cached-copy;
else svn checkout -q -r8 myrepository /var/www/apps/aerosoft/shared/
cached-copy; fi"
servers: ["myip"]
Password:
[myip] executing command
command finished
copying the cached version to /var/www/apps/aerosoft/releases/
20091221041806
* executing "cp -RPp /var/www/apps/aerosoft/shared/cached-copy /var/
www/apps/aerosoft/releases/20091221041806 && (echo 8 > /var/www/apps/
aerosoft/releases/20091221041806/REVISION)"
servers: ["myip"]
[myip] executing command
command finished
* executing `deploy:finalize_update'
* executing "chmod -R g+w /var/www/apps/aerosoft/releases/
20091221041806"
servers: ["myip"]
[myip] executing command
command finished
* executing "rm -rf /var/www/apps/aerosoft/releases/20091221041806/
log /var/www/apps/aerosoft/releases/20091221041806/public/system /var/
www/apps/aerosoft/releases/20091221041806/tmp/pids &&\\\n mkdir -
p /var/www/apps/aerosoft/releases/20091221041806/public &&\\\n
mkdir -p /var/www/apps/aerosoft/releases/20091221041806/tmp &&\\
\n ln -s /var/www/apps/aerosoft/shared/log /var/www/apps/aerosoft/
releases/20091221041806/log &&\\\n ln -s /var/www/apps/aerosoft/
shared/system /var/www/apps/aerosoft/releases/20091221041806/public/
system &&\\\n ln -s /var/www/apps/aerosoft/shared/pids /var/www/
apps/aerosoft/releases/20091221041806/tmp/pids"
servers: ["myip"]
[myip] executing command
command finished
* executing "find /var/www/apps/aerosoft/releases/20091221041806/
public/images /var/www/apps/aerosoft/releases/20091221041806/public/
stylesheets /var/www/apps/aerosoft/releases/20091221041806/public/
javascripts -exec touch -t 200912210418.07 {} ';'; true"
servers: ["myip"]
[myip] executing command
command finished
* executing `after_update_code'
* executing "ln -nfs /var/www/apps/aerosoft/shared/database.yml /var/
www/apps/aerosoft/releases/20091221041806/config/database.yml"
servers: ["myip"]
[myip] executing command
command finished
* executing "ln -nfs /var/www/apps/aerosoft/shared/uploads /var/www/
apps/aerosoft/releases/20091221041806/public/uploads"
servers: ["myip"]
[myip] executing command
command finished
* executing "chmod a+x /var/www/apps/aerosoft/releases/
20091221041806/script/runner"
servers: ["myip"]
[myip] executing command
command finished
* executing `deploy:symlink'
* executing "rm -f /var/www/apps/aerosoft/current && ln -s /var/www/
apps/aerosoft/releases/20091221041806 /var/www/apps/aerosoft/current"
servers: ["myip"]
[myip] executing command
command finished
** transaction: commit
* executing `deploy:restart'
[DEPRECATED] `deploy:restart` is going to be changed to Passenger
mod_rails' method after 2.5.9 - see http://is.gd/2BPeA
* executing "/var/www/apps/aerosoft/current/script/process/reaper"
servers: ["myip"]
[myip] executing command
** [out :: myip] sh: /var/www/apps/aerosoft/current/script/process/
reaper: not found
command finished
failed: "sh -c '/var/www/apps/aerosoft/current/script/process/reaper'"
on myip
My Capfile:
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
my deploy.rb:
<script src='http://pastie.org/751424.js'></script>
thanks,
-Chris
namespace :deploy do
desc "Modified restart task to work with mongrel cluster"
task :restart, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::restart -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
desc "Modified start task to work with mongrel cluster"
task :start, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::start -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
desc "Modified stop task to work with mongrel cluster"
task :stop, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::stop -C
#{deploy_to}/current/config/mongrel_cluster.yml"
end
end
You can pass the parameter "--clean" to be sure that pid files are
fine. Check if the parameter is "--clean" or another, I don't remember.
Regards
--
Rafa