Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.7 KB

README.md

File metadata and controls

22 lines (19 loc) · 1.7 KB

Building and Running After Git Clone

  1. cp gs-creds.json.default gs-creds.json
  2. Edit gs-creds.json
  3. cp .env.default .env
  4. Edit .env
  5. Choose deploy script: deploy-local.sh for development or deploy.sh for production. Review the deploy script which defaults to using build cache (does not include --no-cache by default).
  6. Run deploy script: deploy-local.sh or deploy.sh

Upgrading Jekyll version

  1. Find the Dockerhub image tag of the jekyll version you wish to use
  2. Edit the file Dockerfile.jekyll to use the right tag
  3. Edit the file Dockerfile.jekyll (temporarily) to comment out the line that copies Jekyll-source/Gemfile.lock into the image, so that it will re-create this file itself the next time it builds.
  4. Rename the file Jekyll-source/Gemfile.lock to Jekyll-source/Gemfile.lock.old
  5. Edit the file Jekyll-source/Gemfile to use the right tag
  6. Build the image locally and start the local server via ./deploy-local.sh (this should create a new Jekyll-source/Gemfile.lock file) and confirm that the app works locally (go to http://localhost)
  7. Edit the file Dockerfile.jekyll to re-enable the line that copies Jekyll-source/Gemfile.lock into the image
  8. Run ./deploy-local.sh again and visit http://localhost again
  9. Commit and push changes to Dockerfile.jekyll, Gemfile, and Gemfile.lock
  10. Pull changes from the public server
  11. Restart the public server and confirm that the live app works at https://mxkpp.com