1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00
budibase/scripts/deploy-camunda.sh
melohagan cfc2ea9117
Add free trial modal (#13609)
* Add free_trial to deploy camunda script

* WIP FreeTrial modal

* Handle free trial modal via self endpoint

* Set correct plan title for trial

* Remove catch

* lint

* Refactor

* Remove unnecessary code

* Rename to EnterpriseBasicTrialModal
2024-05-07 12:44:57 +01:00

33 lines
688 B
Bash
Executable file

#!/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
zbctl deploy resource free_trial.bpmn --insecure
cd ../../../../../budibase/packages/account-portal/packages/server
yarn worker:run & cd ../../../.. && yarn dev:accountportal