# User가 root이기 때문에 실행만 하고 빌드는 하지 않는다.
docker run --rm -it \
-v $(pwd)/_blog:/src \
-p 1313:1313 \
klakegg/hugo:0.92.0 \
server
cd /tmp
wget https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_0.92.0_Linux-64bit.tar.gz
tar -xvf hugo_0.92.0_Linux-64bit.tar.gz
echo $PATH
# /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:...
sudo mv hugo /usr/local/bin
hugo version
# hugo v0.92.0-B3549403 linux/amd64 BuildDate=2022-01-12T08:23:18Z VendorInfo=gohugoio
# choco list hugo -a -r
choco install hugo --version=0.92.0
hugo version
# hugo v0.92.0-B3549403 windows/amd64 BuildDate=2022-01-12T08:23:18Z VendorInfo=gohugoio
이미 hugo가 설치되어 있는 경우 아래 명령어 실행
choco upgrade hugo --version=0.92.0 --allow-downgrade
cd _blog
./scripts/startup.sh
cd _blog
./scripts/deploy.sh
cd _blog
./scripts/windows.deploy.ps1