mongrelion / blog

My personal website's source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

carlosleon.info

Build Status

My personal website's source code, powered by Hugo.

Development

The development process consists of:

  1. Making changes to the website
  2. Rendering the website (Hugo spits this out into public/)
  3. Running a test server that serves the contents of that folder. For this we can be pragmatic and python -m SimpleHTTPServer. However, we do run Docker in production, so the best approach is to build the container image locally and run it as if we were in production.

To generate the website

$ make site

This will output all the static content onto the public/ folder.

Building the container image

$ make image

Development shortcut

$ make dev

will delete any previous version of the public/ folder, generate the website and run a test server on port 80.

Deploying

The following task will create a new image, push it to DockerHUB and then deploy it to production:

$ make dist

About

My personal website's source code.


Languages

Language:HTML 52.6%Language:CSS 40.1%Language:Makefile 3.0%Language:JavaScript 2.3%Language:Shell 1.4%Language:Dockerfile 0.6%