diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-06 21:44:24 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-06 21:45:53 +0000 |
commit | 5c8143699f4c0c64df72d60b033de50c9fbd167a (patch) | |
tree | 10a4abbbf4e7045592769c152e7b7cda35fa43da | |
parent | Makefile: automatic --config detection for Jekyll (diff) | |
download | jekyll-docker-5c8143699f4c0c64df72d60b033de50c9fbd167a.tar.gz jekyll-docker-5c8143699f4c0c64df72d60b033de50c9fbd167a.zip |
README: update
-rw-r--r-- | README.md | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -37,34 +37,34 @@ Set parameter values by passing them to make, i.e. Examples -------- -1. Set up an environment and run Jekyll locally: +### Jekyll in Docker - make ruby-install - make ruby-install/clean - make ruby - make chruby - make chruby/clean - make bundler - make dependencies PROJECT_DIR=../jekyll-project/ - make jekyll/serve PROJECT_DIR=../jekyll-project/ + make docker/up PROJECT_DIR=../jekyll-project/ - Some of these might not work on the first try (you'd need to install some - native dependencies for your gems, use `sudo`, etc.). +This builds two images: `jekyll_base` and `jekyll_project`, and runs a +container, which mounts PROJECT_DIR, and runs Jekyll there. -2. Run Jekyll in Docker: +To rebuild the images (i.e. when you bump dependencies), run - make docker/up PROJECT_DIR=../jekyll-project/ + make docker/build PROJECT_DIR=../jekyll-project/ - This builds two images: `jekyll_base` and `jekyll_project`, and runs a - container, which binds PROJECT_DIR, and runs Jekyll there. +Bring everything down: - To rebuild the images (i.e. when you bump dependencies), run + make docker/down - make docker/build PROJECT_DIR=../jekyll-project/ +### Jekyll on the host - Bring everything down: + make ruby-install + make ruby-install/clean + make ruby + make chruby + make chruby/clean + make bundler + make dependencies PROJECT_DIR=../jekyll-project/ + make jekyll/serve PROJECT_DIR=../jekyll-project/ - make docker/down +Some of these might not work on the first try (you'd need to install some +native dependencies for your gems, use `sudo`, etc.). License ------- |