Install hugo
Clone this repo
git clone [email protected]:pham-anh/pqa-site.git
cd pqa-site
Download theme
git clone https://github.com/monkeyWzr/hugo-theme-cactus.git themes/cactus
Download content
hugo mod get -u
Run server
hugo server -D
Generate static files
hugo -D
- Static files are generated in
public
directory
gcloud auth login
export GOOGLE_APPLICATION_CREDENTIALS="path/to/serviceAccountKeyFile.json"
hugo deploy
From here, use Google Cloud load balancer with GCS as the backend to publish the site to the internet.
See also: https://gohugo.io/hosting-and-deployment/hugo-deploy/
https://gohugo.io/hosting-and-deployment/hosting-on-firebase/