Starcoin 开发者网站
Pre-Requirement
- Install hugo > 0.68.0
Checkout
git clone https://github.com/starcoinorg/starcoin-org-v2.git
git submodule update --init
Run server
--minify
will change scale in html header meta value from 1.0 to 1: to which will cause resonsive layout bug in phone.
hugo server --port 8004
open http://localhost:8004/
in browser
Note: if the site does not update with changes, try to open the Chrome/Safari console, and press Ctrl+R to forcibly reload the static files.
Test publishing in localhost
- generate public folder
./build.sh
- serve pubic folder as static site
serve ./public -l 8004
- open
http://localhost:8004
in browser
Build and deploy to AWS S3 bucket
./publish.sh
References
3.Using GitHub Actions and Hugo Deploy to Deploy a Static Site to AWS