Personal videography site created using Jekyll, built and hosted by Netlify, indexed by Algolia, and provided via Hover.
- Ensure Docker Desktop is installed and running in the background.
- Create a new file
.env.dev
with the Algolia Admin API Key. This file is automatically excluded from being committed. Example:echo ALGOLIA_API_KEY=my_api_key > .env.dev
- Run
./start.sh
and visit http://localhost:4000 after the container starts up. It may still be building for 2-5 minutes in the background before the site is up. View the logs in Docker Desktop for more detail. - Use
shutdown.sh
andrebuild.sh
accordingly. Note the-d
argument can be passed to this script to start the Docker container in daemon/background mode.
Notes
- Any edits to pages will automatically refresh.
- To regenerate Algolia indexes, simply restart the container or run
algolia-dev.sh
manually from the Docker terminal. Algolia indexes are used for searching posts and populating the homepage. Note: Algolia is setup to have separate dev and production indexes, so running the script locally will not change the production site. - Changes to the
Dockerfile
(like upgrading the base OS image) should be followed by manually deleting the image from Docker Desktop. Otherwisedocker-compose
will reuse the old image when it spins up the container. - If
docker-compose up
throws the error.env.dev: no such file or directory
please create an.env.dev
file according to the instructions above.
Commits to the master
branch will trigger a build and deploy via Github-Netlify integration.
- Build command:
jekyll build && jekyll algolia
- Environment variables:
ALGOLIA_API_KEY=
andJEKYLL_ENV=production
- Publish directory:
_site