mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
add script update_website.sh to automatically pull, run jekyll and rsync to webserver
This commit is contained in:
parent
613610632e
commit
c2e697f166
1 changed files with 24 additions and 0 deletions
24
_contrib/update_website.sh
Normal file
24
_contrib/update_website.sh
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
REPO=git://github.com/bitcoin/bitcoin.org.git
|
||||||
|
WORKDIR=/tmp/bitcoin.org/
|
||||||
|
DESTDIR=/var/www/
|
||||||
|
|
||||||
|
JEKYLL=/var/lib/gems/1.8/bin/jekyll
|
||||||
|
|
||||||
|
if test ! -d $WORKDIR; then
|
||||||
|
git clone $REPO $WORKDIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $WORKDIR
|
||||||
|
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
git reset --hard
|
||||||
|
|
||||||
|
git clean -x -f
|
||||||
|
|
||||||
|
$JEKYLL
|
||||||
|
|
||||||
|
rsync --delete -a $WORKDIR/_site/ $DESTDIR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue