Skip to content

Commit

Permalink
Add instructions for serving and building using Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Jun 4, 2023
1 parent 9a1beea commit ed3c547
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ clean:
rm -rf .build

.PHONY: build
build: clean
build: clean install
pelican

.PHONY: serve
serve: clean
serve: clean install devinstall
pelican --listen --autoreload
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@ Use the following command to locally test the site (http://localhost:8000),
with automatic rebuilds when making changes:

make serve


## Using Docker

To use Docker to build and develop use these commands, to serve the
development server:

docker compose up -d

And to build the site:

docker compose -f docker-compose.build.yml up

0 comments on commit ed3c547

Please sign in to comment.