Big to deploy vue

This commit is contained in:
breel
2020-07-25 00:25:53 -06:00
parent 8741db40b4
commit 3b8d5e27c5
4 changed files with 48 additions and 0 deletions

View File

@@ -8,6 +8,17 @@ function main() {
scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/
scp ./dndex zach@tickle.lan:./dndex/dndex.new
ssh zach@tickle.lan bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
if [ -n "$BIG" ]; then
big
fi
}
function big() {
pushd ./public/vue/dndex-ui
npm install
npm run build
scp ./dist/* zach@tickle.lan:./dndex-ui/public/
popd
}
if [ "$0" == "$BASH_SOURCE" ]; then