Giter Club home page Giter Club logo

mikejobrien.com's Introduction

Quick Links

Build and Deploy Hugo Site

Overview

  • Steps to deploy the mikejobrien.com static website.

deploy with github-actions

update github-actions hugo version

local prerequisites

  • hugo
  • awscli
  • git
  • brew

local development

  • to build locally on my mac, mikejobrien.com is located in ~github/mikejobrien.com

start with current hugo version

What changed hugo releases

  1. Run hugo version #note version before
  2. Run brew upgrade hugo
  3. Run hugo version #note version after

clone source locallay

  1. Run cd ~/github
  2. Run git clone <https://github.com/obrienmikej/mikejobrien.com.git>

generate new resources after new content added (pages, images..)

  1. run cd ~/github/mikejobrien.com
  2. run hugo

verify changes using hugo deploy to push files to S3 and invalidate cdn

  1. run hugo deploy -dryRun

commit changes using hugo deploy to push files to S3 and invalidate cdn

  1. run hugo deploy

commit changes to github

  1. run rm -rf ~/github/mikejobrien.com/public
  2. commit to main and push commits to the origin remote

sitemap

  1. Submit sitemap to Google using the Search Console Sitemaps tool
  2. click add/test sitemap
  3. enter sitemap.xml

recrawl

  1. Ask Google to recrawl your URLs google crawl
  2. fetch and render for desktop & smartphone

backup step to manually sync files to s3 locally

sync files to S3

  1. run cd ~/github/mikejobrien.com/public

verify changes before sync to S3

  1. run aws s3 sync . s3://mikejobrien.com --delete --acl public-read --dryrun

commit changes to S3

  1. run aws s3 sync . s3://mikejobrien.com --delete --acl public-read

mikejobrien.com's People

Contributors

obrienmikej avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.