2024-04-15 15:37:12 +02:00
|
|
|
#!/bin/bash
|
|
|
|
yarn global add zbctl
|
|
|
|
export ZEEBE_ADDRESS='localhost:26500'
|
|
|
|
|
|
|
|
cd ../budibase-bpm
|
|
|
|
|
|
|
|
is_camunda_ready() {
|
|
|
|
if (zbctl --insecure status 2>/dev/null) | grep -q 'Healthy'; then
|
|
|
|
return 1
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
docker-compose up -d
|
|
|
|
echo "waiting for Camunda to be ready..."
|
|
|
|
|
|
|
|
while is_camunda_ready -eq 0; do sleep 1; done
|
|
|
|
|
|
|
|
echo "deploy processes..."
|
2024-11-04 11:51:11 +01:00
|
|
|
for file in src/main/resources/models/*; do
|
|
|
|
zbctl deploy resource $file --insecure
|
|
|
|
done
|
2024-04-15 15:37:12 +02:00
|
|
|
|
2024-11-04 11:51:11 +01:00
|
|
|
cd ../budibase/packages/pro
|
2024-07-23 10:49:49 +02:00
|
|
|
yarn && yarn build
|
2024-04-15 15:37:12 +02:00
|
|
|
|
2024-07-23 10:49:49 +02:00
|
|
|
cd ../account-portal/packages/server
|
2024-04-15 15:37:12 +02:00
|
|
|
yarn worker:run & cd ../../../.. && yarn dev:accountportal
|
|
|
|
|
|
|
|
|
|
|
|
|