2018-10-30 17:09:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-10-31 08:39:11 +00:00
|
|
|
if ! which jekyll 2>/dev/null 1>/dev/null; then
|
2018-10-30 17:09:13 +00:00
|
|
|
sudo gem install jekyll
|
|
|
|
else
|
2018-10-31 08:39:11 +00:00
|
|
|
pkill -f jekyll
|
2018-10-30 17:09:13 +00:00
|
|
|
fi
|
|
|
|
|
2018-10-31 08:39:11 +00:00
|
|
|
cd site/ && jekyll serve --incremental &
|
2018-10-30 17:09:13 +00:00
|
|
|
sleep 3 && open "http://localhost:4000/"
|
2018-10-31 08:39:11 +00:00
|
|
|
cd ..
|