cp gs-creds.json.default gs-creds.json- Edit
gs-creds.json cp .env.default .env- Edit
.env - Choose deploy script:
deploy-local.shfor development ordeploy.shfor production. Review the deploy script which defaults to using build cache (does not include --no-cache by default). - Run deploy script:
deploy-local.shordeploy.sh
- Find the Dockerhub image tag of the jekyll version you wish to use
- Edit the file Dockerfile.jekyll to use the right tag
- 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.
- Rename the file Jekyll-source/Gemfile.lock to
Jekyll-source/Gemfile.lock.old - Edit the file Jekyll-source/Gemfile to use the right tag
- 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) - Edit the file Dockerfile.jekyll to re-enable the line that copies Jekyll-source/Gemfile.lock into the image
- Run
./deploy-local.shagain and visit http://localhost again - Commit and push changes to
Dockerfile.jekyll,Gemfile, andGemfile.lock - Pull changes from the public server
- Restart the public server and confirm that the live app works at https://mxkpp.com