deployment

This commit is contained in:
Val Erastov 2015-07-20 01:48:24 -07:00
parent e9a9df713f
commit ad0dda7b8d
2 changed files with 13 additions and 3 deletions

View file

@ -1,9 +1,9 @@
#!/usr/bin/env bash
git rev-parse --short HEAD #make sure git in place
cd `dirname "$0"`
git rev-parse --short HEAD #make sure git in place
mkdir -p out
rm -rf out/*
@ -47,6 +47,11 @@ echo >> out/sketcher.html
echo '<!-- R:' "`git rev-parse --short HEAD` -->" >> out/sketcher.html
#now make it work inside out dir
ln -sf ../../web/lib/ out/lib
ln -sf ../../web/img/ out/img
ln -sf ../../web/css/ out/css
mkdir -p out/lib
ln -sf ../../../web/lib/jquery-2.1.0.min.js out/lib/jquery-2.1.0.min.js
ln -sf ../../../web/lib/numeric-1.2.6.js out/lib/numeric-1.2.6.js
ln -sf ../../../web/lib/diff_match_patch.js out/lib/diff_match_patch.js
ln -sf ../../../web/lib/font-awesome out/lib/font-awesome

5
build/publish.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
cd `dirname "$0"`
aws s3 sync out/ s3://sketcher/