https://github.com/gohugoio/hugo
Go
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go
Hugo
注意:SCSSを使うには”Extended”版が必要
wget https://github.com/gohugoio/hugo/releases/download/v0.69.0/hugo_extended_0.69.0_Linux-64bit.deb
sudo dpkg -i hugo_extended_0.69.0_Linux-64bit.deb
GitHook
/var/www/html/git/blog.git/hooks/post-receive を作成
#!/bin/bash
export GIT_WORK_TREE=/var/www/html/blog
cd $GIT_WORK_TREE
unset GIT_DIR
git pull
hugo
bash /var/www/html/git/blog.git/hooks/post-receive で動作確認
Hugo Nginx
/etc/nginx/sites-available/default を編集する。
Isso Nginx
location /isso {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8181/;
}