You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
478 B

#!/usr/bin/env bash
# Workaround for kicking off two subprocesses, allows you to quit both at once via Ctrl-C.
# See: https://spin.atomicobject.com/2017/08/24/start-stop-bash-background-process/
trap "kill 0" EXIT
# These need to be run separately to work around:
# https://github.com/getpelican/pelican/issues/2674
pelican --autoreload &
pelican --listen &
# Launch Firefox to load the page.
# open http://localhost:8000
# Wait for all background processes to finish.
wait