From fc52952914747dc937c805baa211a251a795b847 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 17 Nov 2016 23:18:40 +0100 Subject: 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. --- man/blogc-git-receiver.1.ronn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'man') 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: -- cgit v1.2.3-18-g5258