mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 07:22:38 +01:00
deployment
This commit is contained in:
parent
e9a9df713f
commit
ad0dda7b8d
2 changed files with 13 additions and 3 deletions
|
|
@ -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
5
build/publish.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd `dirname "$0"`
|
||||
|
||||
aws s3 sync out/ s3://sketcher/
|
||||
Loading…
Reference in a new issue