Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (21 sloc) 519 Bytes
#!/bin/bash
# Main bash loop to serve srcco.de
# see http://srcco.de/posts/docker-with-ipv6-and-resource-isolation.html
echo 'Sleeping 10s..'
sleep 10
echo 'Starting CherryPy HTTP server..'
/serve.py srcco.de/output/ &
while true; do
echo 'Cloning git repo..'
git clone https://github.com/hjacobs/srcco.de.git
(
cd srcco.de
echo 'Pulling git repo..'
git pull
rm -fr .doit*
echo 'Building static HTML with Nikola..'
nikola build
)
echo 'Sleeping 90s..'
sleep 90
done