Add docker explanation to readme
This commit is contained in:
parent
084dd2d8ed
commit
3f84be93bd
17
readme.md
17
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`
|
||||
|
||||
--------------------
|
||||
|
||||
<h1 align="center">Hugo + Tailwind CSS Starter and Boilerplate</h1>
|
||||
|
||||
<p align="center">Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user