Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/npes87184/npes87184.github.io

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

blog github-page github-pages jekyll

Last synced: 27 days ago
JSON representation

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

Awesome Lists containing this project

README

        

My Blog
=====

[LINK](https://npes87184.github.io/)

### Establish environment by docker:

1. Make sure [Docker](https://www.docker.com/) installed.

2. Clone repository locally.

```bash
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:

```bash
cd
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:

```bash
docker start beautiful-jekyll
```

And you can stop the server with:

```bash
docker stop beautiful-jekyll
```

### Establish environment by docker-compose:

1. Make sure [Docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/install/) installed.

2. Clone repository locally.

```bash
git clone https://github.com/npes87184/npes87184.github.io.git
```

3. Run the following command

```bash
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.