From 84bffbd7c0f73e7d33864bb148224c1a693bcb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 12 Jul 2013 02:14:28 +0200 Subject: [PATCH] document all hooks, tasks --- README.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.markdown b/README.markdown index 56e3181..3085518 100644 --- a/README.markdown +++ b/README.markdown @@ -101,14 +101,34 @@ repository. This is how your code on the server is kept up to date. This script checks out the latest version of your project from the current branch and runs the following callback scripts: +* `deploy/setup` - on first push. * `deploy/after_push` - on subsequent pushes. It in turn executes: * `deploy/before_restart` * `deploy/restart` * `deploy/after_restart` +* `deploy/rollback` - executed for `git deploy rollback`. All of the callbacks are optional. These scripts are ordinary Unix executables. The ones which get generated for you by `git deploy init` are written in shell script and Ruby. +Extra commands +-------------- + +* `git deploy hooks` - Updates git hooks on the remote repository + +* `git deploy log [N=20]` - Shows last 20 lines of deploy log on the server + +* `git deploy rerun` - Re-runs the `deploy/after_push` callback as if a git push happened + +* `git deploy restart` - Runs the `deploy/restart` callback + +* `git deploy rollback` - Undo a deploy by checking out the previous revision, + runs `deploy/callback` if exists instead of `deploy/after_push` + +* `git deploy upload ` - Copy local files to the remote app + + + [heroku]: http://heroku.com/