site/build.sh

28 lines
468 B
Bash
Raw Normal View History

2016-12-18 20:11:06 +00:00
#!/bin/bash
set -x
export PATH="$PATH:/usr/local/go/bin:/usr/local/node/bin"
export CI="true"
2017-01-09 21:41:39 +00:00
npm install -g asar
2016-12-18 20:11:06 +00:00
(cd /site/frontend
yes | npm install
npm install -g bower
yes 2 | bower install --allow-root
npm run build
2017-01-09 21:41:39 +00:00
asar pack static ../frontend.asar
2016-12-18 20:11:06 +00:00
rm -rf bower_components node_modules) &
(cd /site/backend/christine.website
go build
mv christine.website /usr/bin) &
2017-01-09 21:41:39 +00:00
(cd /site
asar pack static ./static.asar) &
2016-12-18 20:11:06 +00:00
wait
2017-01-09 21:41:39 +00:00
rm -rf /usr/lib/node_modules