Reworked Makefile to use Docker images, updated README

This commit is contained in:
Bastian de Byl
2019-01-28 23:50:47 -05:00
parent 5fd0630480
commit 85e9d83cf5
4 changed files with 24 additions and 26 deletions

View File

@@ -7,15 +7,25 @@ etc. The binary static content is all hosted on S3 (i.e. `.jpeg`, `.png`, etc.).
It was setup using **Terraform**, or more
specifically
[alimac/terraform-s3 (from commit 4b32c8d)](https://github.com/alimac/terraform-s3/tree/4b32c8d336ffacc4318c065f8d135973210f535c) --
big thank you to @alimac on GitHub for that!
big thank you to [**@alimac**](https://github.com/alimac/) on GitHub for that!
# Usage
The Makefile is a simple wrapper for `hugo` and `aws s3`, but provides useful
short commands to test the hugo site locally and deploy it to AWS.
The Makefile is a simple wrapper for the `bdebyl/hugo` Docker image and `aws
s3`, but provides useful short commands to test the hugo site locally and deploy
it to AWS.
## Dependencies
[Docker](https://docs.docker.com/install/) is required to run the make targets
for hosting and generating the static Hugo site.
## Development
Simply start the Hugo server:
To build the static content _without_ running the Hugo server:
```
make build
```
To start the Hugo server on `http://localhost:1313`:
```
make run
```