Alternatively, you can redefine deploy:start, deploy:stop, and deploy:restart to manage your application listeners how you need them managed. For example, we're using runit to manage our apps, and so we've redefined deploy:restart to send the appropriate commands to restart things.
- Jamis On Apr 30, 2008, at 6:09 AM, rejeep wrote:
Yes, I have started the mongrel server. But I did it manually as root on the server. But I also tried now to kill the server and run rake deploy:cold and got this: * executing `deploy:cold' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' updating the cached checkout on all servers * executing "if [ -d /home/rejeep/www/shared/cached-copy ]; then cd / home/rejeep/www/shared/cached-copy && git fetch origin && git merge origin/HEAD; else git clone ~/git/rejeep_www /home/rejeep/www/shared/cached-copy && cd /home/rejeep/www/shared/cached-copy && git checkout -b deploy HEAD; fi" servers: ["tuxicity.se"] Password: [tuxicity.se] executing command ** [out] Already up-to-date. command finished copying the cached version to /home/rejeep/www/releases/ 20080430120513 * executing "cp -RPp /home/rejeep/www/shared/cached-copy /home/ rejeep/www/releases/20080430120513 && (echo 3ca18194ef149247b09054be368cbc04daa9f5bb > /home/rejeep/www/releases/ 20080430120513/REVISION)" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished * executing `deploy:finalize_update' * executing "chmod -R g+w /home/rejeep/www/releases/20080430120513" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished * executing "rm -rf /home/rejeep/www/releases/20080430120513/log /home/rejeep/www/releases/20080430120513/public/system /home/rejeep/ www/releases/20080430120513/tmp/pids &&\n mkdir -p /home/rejeep/www/ releases/20080430120513/public &&\n mkdir -p /home/rejeep/www/ releases/20080430120513/tmp &&\n ln -s /home/rejeep/www/shared/log /home/rejeep/www/releases/20080430120513/log &&\n ln -s / home/rejeep/www/shared/system /home/rejeep/www/releases/20080430120513/ public/system &&\n ln -s /home/rejeep/www/shared/pids /home/ rejeep/www/releases/20080430120513/tmp/pids" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished * executing "find /home/rejeep/www/releases/20080430120513/public/ images /home/rejeep/www/releases/20080430120513/public/stylesheets / home/rejeep/www/releases/20080430120513/public/javascripts -exec touch -t 200804301205.13 {} ';'; true" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished * executing `deploy:symlink' * executing "rm -f /home/rejeep/www/current && ln -s /home/rejeep/ www/releases/20080430120513 /home/rejeep/www/current" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished ** transaction: commit * executing `deploy:migrate' * executing "ls -x /home/rejeep/www/releases" servers: ["tuxicity.se"] [tuxicity.se] executing command command finished * executing "cd /home/rejeep/www/releases/20080430120513; rake RAILS_ENV=production db:migrate" servers: ["tuxicity.se"] [tuxicity.se] executing command ** [out :: tuxicity.se] (in /home/rejeep/www/releases/20080430120513) ** [out :: tuxicity.se] == 4 CreateLinks: migrating =================================================== ** [out :: tuxicity.se] -- create_table(:links) ** [out :: tuxicity.se] -> 0.0193s ** [out :: tuxicity.se] == 4 CreateLinks: migrated (0.0195s) ========================================== ** [out :: tuxicity.se] command finished * executing `deploy:start' * executing "sh -c 'cd /home/rejeep/www/current && nohup script/ spin'" servers: ["tuxicity.se"] [tuxicity.se] executing command *** [err :: tuxicity.se] nohup: cannot run command `script/spin': No such file or directory command finished command "sh -c 'cd /home/rejeep/www/current && nohup script/spin'" failed on tuxicity.se Do the user I have entered (rejeep) in deploy.rb have any rights on the server? Or what else could the problem be? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
