Skip to content

AdChain/adtoken-site

Repository files navigation

adtoken site

https://adtoken.com

Install

brew install hugo

Development

Run server

$ hugo server

Themes

themes/

Setting default theme

config.toml

theme = "robust"

Running web server with a specified theme

hugo server --theme lunar

http://localhost:1313

Stylesheet

static/css/styles.css

Scripts

static/js

Assets

static/assets

Build

$ hugo

S3 sync

$ 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

Resources