Use docker-compose #28
Loading…
Reference in a new issue
No description provided.
Delete branch "benjaoming/website:docker-compose"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #27
---------------
@ -19,3 +28,3 @@
``` {.sourceCode .bash}
# Fetch .deb from Github
wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.deb -O hugo_extended.deb
wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_X.Y.Z_Linux-64bit.deb -O hugo_extended.deb
[nit] The Dockerfile calls it
hugo.deb
but the docs sayhugo_extended.deb
- not a big point though.This is also just manual instructions for someone that wants to run Hugo without Docker. I can imagine it can be easier for some folks that will find Docker discouraging. Like "what is even Docker!?" would maybe be the reaction of a frontend design who'd want to help :)
I get that. I want to live without Docker :-)
I do too sometimes.. if dependencies are few and they are trustworthy .debs, it's fine for me at times.
@ -0,0 +21,4 @@
command: |
/bin/bash -c "
cd /code
hugo serve
If I understand hugo correctly, then
hugo serve
uses the built-in server, and will build and serve everything from memory. So I don't think the build step is really necessary.Per
hugo server --help
:I think using the built-in server is fine, as I don't think performance is a big concern right now.
I could be missing something though...
It's only for development, yeah. The actual building is in
.drone.yml
.But then you could just omit the whole
build
service, right?Ah yes, correct, I'll remove it, it's confusing.