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
|
|
|
|
|
|
|
|
cd src/main/resources/models
|
|
|
|
|
|
|
|
echo "deploy processes..."
|
|
|
|
zbctl deploy resource offboarding.bpmn --insecure
|
|
|
|
zbctl deploy resource onboarding.bpmn --insecure
|
2024-05-07 13:44:57 +02:00
|
|
|
zbctl deploy resource free_trial.bpmn --insecure
|
2024-07-01 16:01:04 +02:00
|
|
|
zbctl deploy resource verify_sso_login.bpmn --insecure
|
2024-04-15 15:37:12 +02:00
|
|
|
|
2024-07-23 10:49:49 +02:00
|
|
|
cd ../../../../../budibase/packages/pro
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|