diff options
Diffstat (limited to 'post-receive')
-rw-r--r-- | post-receive | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/post-receive b/post-receive new file mode 100644 index 0000000..d888042 --- /dev/null +++ b/post-receive @@ -0,0 +1,12 @@ +# Solution to +# remote: fatal: not a git repository: '.' +unset GIT_DIR + +cd /var/lib/forgejo/website +git pull +git submodule update + +# Manually copy static since btrfs COW is super fast +rm -r /srv/http/www +cp -r static /srv/http/www +hugo --destination /srv/http/www |