From 3f84be93bd40755410557e053042eb567a813f84 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 9 Oct 2023 16:04:21 +0200 Subject: [PATCH] Add docker explanation to readme --- readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/readme.md b/readme.md index c142ef5..f631a41 100755 --- a/readme.md +++ b/readme.md @@ -1,3 +1,20 @@ +# Specifics for CHILL website + +## Using docker +Since we are using docker to launch the website a few things must be done if you are launching it for the first time. +Follow these steps: + +1. In docker-compose.yaml file replace `npm run dev` with `tail -f /dev/null` + (This allows the container to keep running while we install all the dependencies in package.json. Without this command the container would exit, because of error) +2. In another terminal window go into the container `docker-compose exec front sh` +3. Run `npm i` +4. Once all dependencies are installed exit the container and stop the container running in the other terminal window +5. Change the line `tail -f /dev/null` back to `npm run dev` +6. In the package.json file change the dev command -> `"hugo server --bind 0.0.0.0"` +7. Launch the container again `docker-compose.yaml up` + +-------------------- +

Hugo + Tailwind CSS Starter and Boilerplate

Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.