@dbos-inc/dbos-sdk 0.9.11-preview → 0.9.15-preview.g3106cba55d
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/packages/dbos-cloud/cloudutils.d.ts +0 -1
- package/dist/packages/dbos-cloud/cloudutils.d.ts.map +1 -1
- package/dist/packages/dbos-cloud/cloudutils.js +1 -2
- package/dist/packages/dbos-cloud/cloudutils.js.map +1 -1
- package/dist/packages/dbos-cloud/login.d.ts +0 -3
- package/dist/packages/dbos-cloud/login.d.ts.map +1 -1
- package/dist/packages/dbos-cloud/login.js +11 -9
- package/dist/packages/dbos-cloud/login.js.map +1 -1
- package/dist/src/dbos-runtime/init.d.ts.map +1 -1
- package/dist/src/dbos-runtime/init.js +5 -4
- package/dist/src/dbos-runtime/init.js.map +1 -1
- package/dist/src/dbos-runtime/migrate.d.ts +1 -0
- package/dist/src/dbos-runtime/migrate.d.ts.map +1 -1
- package/dist/src/dbos-runtime/migrate.js +46 -26
- package/dist/src/dbos-runtime/migrate.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/examples/hello/dbos-config.yaml +2 -2
- package/examples/hello/package-lock.json +1 -0
- package/examples/hello/start_postgres_docker.sh +3 -1
- package/package.json +1 -1
@@ -12,7 +12,7 @@ docker run --rm --name=dbos-db --env=POSTGRES_PASSWORD=${PGPASSWORD} --env=PGDAT
|
|
12
12
|
# Wait for PostgreSQL to start
|
13
13
|
echo "Waiting for PostgreSQL to start..."
|
14
14
|
for i in {1..30}; do
|
15
|
-
if docker exec dbos-db
|
15
|
+
if docker exec dbos-db psql -U postgres -c "SELECT 1;" > /dev/null 2>&1; then
|
16
16
|
echo "PostgreSQL started!"
|
17
17
|
break
|
18
18
|
fi
|
@@ -21,3 +21,5 @@ done
|
|
21
21
|
|
22
22
|
# Create a database in Postgres.
|
23
23
|
docker exec dbos-db psql -U postgres -c "CREATE DATABASE hello;"
|
24
|
+
|
25
|
+
echo "Database started successfully!"
|