Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(pg): seed wants to sleep more (#618)
Danny Xubdb296bff98b
diff --git a/scripts/demo.sh b/scripts/demo.shindex 3097e0823a..775deccf07 100644--- a/scripts/demo.sh+++ b/scripts/demo.sh@@ -4,7 +4,7 @@# by changing the ENTRYPOINT and CMD at the dockerfile to this.# example usages:-# ./demo.sh+# ./demo.sh# ./demo.sh https://example.com# ./demo.sh https://example.com:8080@@ -25,21 +25,25 @@ fifunction seedDemoData(){echo 'Seeding data for online demo'-+bytebase --host ${ONLINE_DEMO_HOST} --port ${ONLINE_DEMO_PORT} --demo --data /var/opt/bytebase &-- echo 'Sleep 10 seconds for bytebase to finish migration...'+ until [ -d /var/opt/bytebase/pgdata/ ]+ do+ echo "waiting..."+ sleep 1+ done+ echo 'Sleep 10 seconds for bytebase to finish migration...'sleep 10echo 'Killing seeding program'-+ps | grep 'bytebase' | grep -v grep | xargs kill -9}function startReadonly(){echo "Starting Bytebase in readonly and demo mode at ${ONLINE_DEMO_HOST}:${ONLINE_DEMO_PORT}..."-+bytebase --host ${ONLINE_DEMO_HOST} --port ${ONLINE_DEMO_PORT} --readonly --demo --data /var/opt/bytebase}