theshell.ch/build.sh
bevilj 65444d1bcc Update scripts
* Fix jekyll kill
* Move back to the root directory of the project once done with
  serving the website
* Add stop script
* Build website as incremental so changes will be applied automatically



git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@6 a672b425-5310-4d7a-af5c-997e18724b81
2018-10-31 08:39:11 +00:00

12 lines
200 B
Bash
Executable File

#!/bin/sh
if ! which jekyll 2>/dev/null 1>/dev/null; then
sudo gem install jekyll
else
pkill -f jekyll
fi
cd site/ && jekyll serve --incremental &
sleep 3 && open "http://localhost:4000/"
cd ..