tarvos21 / starcoin-org-v2

New Version of Starcoin.org

Home Page:https://starcoin-org.git.xin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starcoin 开发者网站

Pre-Requirement

  1. 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

  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

About

New Version of Starcoin.org

https://starcoin-org.git.xin


Languages

Language:JavaScript 53.7%Language:HTML 29.3%Language:CSS 15.4%Language:SCSS 1.5%Language:Shell 0.0%