brew install hugo
Run server
$ hugo server
Themes
themes/
Setting default theme
config.toml
theme = "robust"
Running web server with a specified theme
hugo server --theme lunar
Stylesheet
static/css/styles.css
Scripts
static/js
Assets
static/assets
$ hugo
$ aws s3 sync ./public s3://adtoken.com --acl=public-read --profile=metax --region=us-west-2
Make sure to invalidate AWS CloudFront cache after deployment
https://console.aws.amazon.com/cloudfront/home?region=us-west-2#distribution-settings:E3MTBLBQ6FT84K
aws cloudfront create-invalidation --distribution-id E28OQWP5J96YQH --paths /index.html /assets/* /* --profile=metax
Deploy to staging
npm run deploy:staging
Deploy lunarscape website
npm run deploy:lunar:staging
Deploy to production
npm run deploy && npm run invalidate-cache