Skip to content

starcoinorg/starcoin-org-v3

Repository files navigation

Starcoin 开发者网站

Pre-Requirement

  1. Install hugo > 0.68.0

Checkout

git clone https://github.com/starcoinorg/starcoin-org-v3.git
git submodule update --init

Run server

--minify will change initial-scale value in html header meta tag from 1.0 to 1:

<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />

to

<meta content="width=device-width;initial-scale=1;maximum-scale=1;user-scalable=0" name="viewport" />)

which will cause responsive 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

  1. generate public folder
./build.sh
  1. serve pubic folder as static site
serve ./public -l 8004
  1. open http://localhost:8004 in browser

Build and deploy to AWS S3 bucket

./publish.sh

References

  1. install AWS CLI

  2. setup AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

3.Using GitHub Actions and Hugo Deploy to Deploy a Static Site to AWS