aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-11-17 23:18:40 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-11-17 23:18:40 +0100
commitfc52952914747dc937c805baa211a251a795b847 (patch)
treea32459b3bc63106dc049710b0b60878f253a7767 /man
parent984fa87451c9dd3ef2d9ec7976af97ce88bac6d7 (diff)
downloadblogc-fc52952914747dc937c805baa211a251a795b847.tar.gz
blogc-fc52952914747dc937c805baa211a251a795b847.tar.bz2
blogc-fc52952914747dc937c805baa211a251a795b847.zip
git-receiver: allow users to re-run the last successful build
running the pre-receive hook manually on the server will re-run the last successful build.
Diffstat (limited to 'man')
-rw-r--r--man/blogc-git-receiver.1.ronn10
1 files changed, 10 insertions, 0 deletions
diff --git a/man/blogc-git-receiver.1.ronn b/man/blogc-git-receiver.1.ronn
index ab54490..1fd6188 100644
--- a/man/blogc-git-receiver.1.ronn
+++ b/man/blogc-git-receiver.1.ronn
@@ -45,6 +45,16 @@ This will deploy the example to the server, creating a symlink to the built cont
in `/home/blogc/repos/blogs/blogc-example.git/htdocs`. This symlink should be used
as the document root for the web server virtual host.
+### Rebuild last successful build
+
+If for some reason you want to rebuild the last successful build of a given website,
+you can run its `pre-receive` hook manually in the server:
+
+ # su -s /bin/sh - blogc
+ $ ./repos/blogs/blogc-example.git/hooks/pre-receive
+
+This should re-run the last build as if it was pushed to git.
+
### Setup with SELinux enabled (Fedora)
Supposing the usage of nginx as webserver, running as the `nginx` user: