pages/.gitpod.yml

13 lines
654 B
YAML

# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Install Hugo dependencies
before: |
mkdir -p $HOME/.local/bin
curl -L https://github.com/gohugoio/hugo/releases/download/v0.104.3/hugo_extended_0.104.3_linux-amd64.tar.gz | tar xvz -C $HOME/.local/bin
export PATH=$HOME/.local/bin:$PATH
init: echo "Your version of Hugo is `hugo version`"
command: hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 1313
onOpen: open-preview