Use docker-compose #28

Merged
benjaoming merged 2 commits from benjaoming/website:docker-compose into new 2021-05-04 20:34:13 +00:00
Owner

Fixes #27

Fixes #27
laumann reviewed 2021-05-04 19:40:05 +00:00
---------------
@ -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
First-time contributor

[nit] The Dockerfile calls it hugo.deb but the docs say hugo_extended.deb - not a big point though.

[nit] The Dockerfile calls it `hugo.deb` but the docs say `hugo_extended.deb` - not a big point though.
Author
Owner

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 :)

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 :)
First-time contributor

I get that. I want to live without Docker :-)

I get that. I want to live without Docker :-)
Author
Owner

I do too sometimes.. if dependencies are few and they are trustworthy .debs, it's fine for me at times.

I do too sometimes.. if dependencies are few and they are trustworthy .debs, it's fine for me at times.
benjaoming marked this conversation as resolved
@ -0,0 +21,4 @@
command: |
/bin/bash -c "
cd /code
hugo serve
First-time contributor

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:

Hugo provides its own webserver which builds and serves the site.
While hugo server is high performance, it is a webserver with limited options.
Many run it in production, but the standard behavior is for people to use it
in development and use a more full featured server such as Nginx or Caddy.

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

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`: > Hugo provides its own webserver which builds and serves the site. > While hugo server is high performance, it is a webserver with limited options. > Many run it in production, but the standard behavior is for people to use it > in development and use a more full featured server such as Nginx or Caddy. 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...
Author
Owner

It's only for development, yeah. The actual building is in .drone.yml.

It's only for development, yeah. The actual building is in `.drone.yml`.
First-time contributor

But then you could just omit the whole build service, right?

But then you could just omit the whole `build` service, right?
Author
Owner

Ah yes, correct, I'll remove it, it's confusing.

Ah yes, correct, I'll remove it, it's confusing.
benjaoming marked this conversation as resolved
benjaoming merged commit 6eda9acc15 into new 2021-05-04 20:34:13 +00:00
Sign in to join this conversation.
No reviewers
No labels
new-website
ui
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: data.coop/website#28
No description provided.