Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: make staging.sh support external pg (#3397)
Tianzhou (天舟)37ce63047b50
diff --git a/scripts/staging.sh b/scripts/staging.shindex 1a595d442e..0186b2027c 100644--- a/scripts/staging.sh+++ b/scripts/staging.sh@@ -7,6 +7,7 @@# ./staging.sh# ./staging.sh https://example.com# ./staging.sh https://example.com:8080+# ./staging.sh https://staging.bytebase.com postgres://user:[email protected]/bytebase# If no parameter is passed, use https://staging.bytebase.com as host and 443 as port by defaultONLINE_DEMO_EXTERNAL_URL='https://staging.bytebase.com'@@ -23,6 +24,11 @@ if [ $1 ]; thenfifi-echo "Starting Bytebase in demo mode on port ${ONLINE_DEMO_PORT}, visiting from ${ONLINE_DEMO_EXTERNAL_URL}..."+PG=''+if [ $2 ]; then+ PG="--pg $2"+fi++echo "Starting Bytebase in demo mode on port ${ONLINE_DEMO_PORT}, visiting from ${ONLINE_DEMO_EXTERNAL_URL} ..."-bytebase --port ${ONLINE_DEMO_PORT} --external-url ${ONLINE_DEMO_EXTERNAL_URL} --demo --data /var/opt/bytebase --debug+bytebase --port ${ONLINE_DEMO_PORT} --external-url ${ONLINE_DEMO_EXTERNAL_URL} ${PG} --data /var/opt/bytebase --demo --debug