0% found this document useful (0 votes)
36 views1 page

Capistrano Execution Path

Uploaded by

mmore666
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

Capistrano Execution Path

Uploaded by

mmore666
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Gem Path:

Apple OS X (10.5): /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/ Microsoft Windows: C:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.0/ GNU / Linux: See your distribution's documentation. Something like: /usr/local/lib/ruby/gems/1.8/

Why show the gem paths??!? So you can go and explore this for yourself of course!

You'll nd all these methods in plain, easy to read Ruby in the capistrano gem directory, in: ...../lib/capistrano/recipes/deploy.rb

deploy:setup

Prepares one or more servers for deployment.

mkdir mkdir mkdir mkdir mkdir mkdir

-p /u/apps/example -p /u/apps/example/releases -p /u/apps/example/shared -p /u/apps/example/shared/system -p/u/apps/example/shared/log -p/u/apps/example/shared/pids

sudo sudo sudo sudo sudo sudo

chmod chmod chmod chmod chmod chmod

g+w g+w g+w g+w g+w g+w

/u/apps/example /u/apps/example/releases /u/apps/example/shared /u/apps/example/shared/system /u/apps/example/shared/log /u/apps/example/shared/pids

deploy:default

Deploys your project.

Container Method... doesn't execute anything directly

deploy:update

Copies your project and updates the symlink.

Container Method... doesn't execute anything directly

deploy:update_code

Copies your project to the remote servers.

svn checkout -q -r116 svn+ssh://repository.host.com/trunk/ /u/apps/example/releases/20081008230107 \ && (echo 116 > /u/apps/example/releases/20081008230107/REVISION)

strategy.deploy!

For More Information See: http://wiki.capify.org/index.php?title=Understanding_deployment_strategies [internal] Touches up the released code.
chmod -R g+w /u/apps/example/releases/20081008230107

deploy:nalize_update

deploy:symlink

Updates the symlink to the most recently deplo...

rm -rf /u/apps/example/current ln -sf /u/apps/example/releases/20081008230107 /u/apps/example/current # Where 20081008230107 is the latest release according to: ls -xt /u/apps/example/releases/

deploy:restart

Restarts your application.

sudo /u/apps/example/current/script/process/reaper

You might also like