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:
parent
be1656aacc
commit
48131599bb
3 changed files with 10 additions and 4 deletions
8
build.sh
8
build.sh
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/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
|
sudo gem install jekyll
|
||||||
else
|
else
|
||||||
kill -9 $(ps ax | grep jekyll | grep -v grep | cut -d\ -f1)
|
pkill -f jekyll
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd site/ && jekyll serve &
|
cd site/ && jekyll serve --incremental &
|
||||||
sleep 3 && open "http://localhost:4000/"
|
sleep 3 && open "http://localhost:4000/"
|
||||||
|
cd ..
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
_site/
|
_site/
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
|
.jekyll-metadata
|
||||||
|
|
5
stop.sh
Executable file
5
stop.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if which jekyll 2>/dev/null 1>/dev/null; then
|
||||||
|
pkill -f jekyll
|
||||||
|
fi
|
Loading…
Reference in a new issue