Software Engineer using Go and TypeScript

Using Hugo on Gitpod

Published on July 31, 2020

Create the necessary Gitpod files on the root of your repository.

$ touch .gitpod.Dockerfile $ touch .gitpod.yml
1# file: .gitpod.Dockerfile 2 3FROM gitpod/workspace-full 4 5USER root 6 7RUN apt-get update && apt-get install -yq hugo
1# file: .gitpod.yml 2 3image: 4 file: .gitpod.Dockerfile 5 6tasks: 7 - command: 'hugo server --baseUrl $(gp url 1313) --appendPort=false' 8 9ports: 10 - port: 1313 11 onOpen: open-preview

After commiting and merging your code, you can then go to

https://gitpod.io/#https://github.com/<YOUR_USERNAME>/<YOUR_REPO_NAME>
to start your Gitpod workspace.

Optionally, you can also add a Gitpod badge on your

README
file:

1<!-- file: README.md --> 2 3[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/<YOUR_USERNAME>/<YOUR_REPO_NAME>)

Sources

Setup configuration was copied from esttech/theia-dev-conf.