aboutsummaryrefslogtreecommitdiff
path: root/post-receive
blob: d888042bf2877c0873c5c4db9da94cbbeb39d01d (plain)
1
2
3
4
5
6
7
8
9
10
11
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