Code Monkey home page Code Monkey logo

Comments (5)

klakegg avatar klakegg commented on July 16, 2024 3

This project makes Hugo as Docker image and is not a replacement of Hugo. Please see the Hugo documentation for information on how to use Hugo.

from docker-hugo.

babatundebusari avatar babatundebusari commented on July 16, 2024 2

Just because it is dockerized hugo does not mean you can not have a proper documentation of how to use the image. Just trying to help you maintain a helpful repo but you can do whatever you want; it is your repo!.
Peace.

from docker-hugo.

yanboyang713 avatar yanboyang713 commented on July 16, 2024 1

@babatundebusari Any ideas for when you start up Hugo within docker, after run "hugo new site" automatically? Thanks

from docker-hugo.

beckitrue avatar beckitrue commented on July 16, 2024 1

I just worked my way through this issue. The Docker image has hugo installed, but it doesn't have any code for a website. That's why we get the error about missing a config file. This page helped me work out that bit. If you do have code for a website, make sure your $(pwd) is the directory containing your site's code.

If you don't have code for a website on your local machine, you can start the container with the shell command like so (if your them uses mods, choose a ext-<os>-onbuild image):

docker run --rm -it \
  -v $(pwd):/src \
  klakegg/hugo:0.93.2-alpine \
  shell

Then, from the container's shell, you can clone your website's GitHub repo (git is installed), or if you're starting from scratch, do a Quick Start and build your site.

You can start the server when you're done hugo server -D. The -D shows you draft posts.

from docker-hugo.

h3rb1n4t0r avatar h3rb1n4t0r commented on July 16, 2024

Am also interested in getting this one right :)

from docker-hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.