npes87184 / npes87184.github.io

My blog - https://npes87184.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Blog

LINK

Establish environment by docker:

  1. Make sure Docker installed.

  2. Clone repository locally.

    git clone https://github.com/npes87184/npes87184.github.io.git
  3. 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

Establish environment by docker-compose:

  1. Make sure Docker and docker-compose installed.

  2. Clone repository locally.

    git clone https://github.com/npes87184/npes87184.github.io.git
  3. 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.

About

My blog - https://npes87184.github.io/

License:MIT License


Languages

Language:HTML 52.5%Language:CSS 38.8%Language:JavaScript 8.3%Language:Dockerfile 0.2%Language:Ruby 0.1%