site/build.sh

20 lines
336 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"
(cd /site/frontend
yes | npm install
npm install -g bower
yes 2 | bower install --allow-root
npm run build
rm -rf bower_components node_modules) &
(cd /site/backend/christine.website
go build
mv christine.website /usr/bin) &
wait