Skip to content

pham-anh/pqa-site

Repository files navigation

Pham Quynh Anh's Site

Build the site

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

Upload static files to GCS

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/

Host the site on Firebase

https://gohugo.io/hosting-and-deployment/hosting-on-firebase/

About

My personal site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages