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
This commit is contained in:
bevilj 2018-10-31 08:39:11 +00:00
parent f9ad68ac37
commit 65444d1bcc
3 changed files with 10 additions and 4 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh
if ! which jekyll 2>/dev/null 1>/dev/null; then
if ! which jekyll 2>/dev/null 1>/dev/null; then
sudo gem install jekyll
else
kill -9 $(ps ax | grep jekyll | grep -v grep | cut -d\ -f1)
pkill -f jekyll
fi
cd site/ && jekyll serve &
cd site/ && jekyll serve --incremental &
sleep 3 && open "http://localhost:4000/"
cd ..

View File

@ -1,2 +1,3 @@
_site/
.sass-cache/
.jekyll-metadata

5
stop.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if which jekyll 2>/dev/null 1>/dev/null; then
pkill -f jekyll
fi