mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
32 lines
532 B
Bash
Executable File
32 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
echo "Build static content"
|
|
|
|
mkdir ./cloudbeaver/web
|
|
|
|
cd ../../cloudbeaver/webapp
|
|
|
|
yarn
|
|
cd ./packages/product-default
|
|
yarn run bundle
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Application build failed'; exit $rc
|
|
fi
|
|
|
|
cd ../../
|
|
yarn test
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Frontend tests failed'; exit $rc
|
|
fi
|
|
|
|
cd ../deploy
|
|
|
|
echo "Copy static content"
|
|
|
|
cp -rp ../webapp/packages/product-default/lib/* cloudbeaver/web
|
|
|
|
echo "Cloudbeaver is ready. Run run-server.sh in cloudbeaver folder to start the server."
|