Giter Site home page Giter Site logo

nickferguson.dev's Introduction

Nick's Blog

CI

Project files for nickferguson.dev.

Hugo (extended) is required to development and build the site.

Development

Install Hugo

Install Hugo (extended) from tarball release.

You can modify the version by setting HUGO_VERSION.
The default HUGO_INSTALL_DIR is /usr/local/bin.

make install-hugo

Local Dev Server

This mode will watch for changes under site/ and continually re-build.

You can modify HUGO_BASE_URL, HUGO_BIND_ADDR and HUGO_PORT as needed.

make serve

Building and Packaging

Generate the static files to be served.

Clean (optiona)

Remove the contents of HUGO_BUILD_OUTPUT

make clean

Build

Generates HUGO_BUILD_OUTPUT (default: site/public/).

You can build for three environments by setting HUGO_BUILD_ENV (default: production):

  • development
  • staging
  • production
make build

Manual Deploy

Deploy the HUGO_BUILD_OUTPUT to the remote host HUGO_SSH_HOST at the path HUGO_DEPLOY_TARGET_DIR (default: /var/www/$(HUGO_SITE_NAME))

Performed via rsync over SSH. The HUGO_SSH_CONN defines the remote connection in the format user(optional)@host.

make deploy

Github Actions Deploy

Uses this container for SSH keys.

SSH_CONFIG:

Host hugo-blog
    Hostname 0.0.0.0
	User root

Package Public Html

Create a zip archive of HUGO_BUILD_OUTPUT.

make package

which will produce nickferguson.dev-public.zip

nickferguson.dev's People

Contributors

nickcrew avatar

Stargazers

 avatar

Watchers

James Cloos 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.