-
Make sure Docker installed.
-
Clone repository locally.
git clone https://github.com/npes87184/npes87184.github.io.git
-
Run the following shell commands to build the docker image and start the container for the first time:
cd <repository_folder> docker build -t beautiful-jekyll "$PWD" docker run -d -p 4000:4000 --name beautiful-jekyll -v "$PWD":/srv/jekyll beautiful-jekyll
Now that Docker is set up, you do not need to run the above steps again. You can now view your website at http://localhost:4000/. You can start the container again in the future with:
docker start beautiful-jekyll
And you can stop the server with:
docker stop beautiful-jekyll
-
Make sure Docker and docker-compose installed.
-
Clone repository locally.
git clone https://github.com/npes87184/npes87184.github.io.git
-
Run the following command
docker-compose up --build
Whenever you make any changes to _config.yml
, you must stop and re-start the server for the new config settings to take effect.