Skip to content

Commit 7cb6b73

Browse files
committed
make pgcli wait for 30s to let container start
1 parent 6bd2586 commit 7cb6b73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitpod.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ tasks:
66
command: |
77
gp open README.md
88
export PUBLIC_IP=127.0.0.1
9-
docker-compose up && gp sync-done run-PostgreSQL
9+
docker-compose up
1010
- name: Install PGCLI
1111
init: |
1212
pip install -U pgcli
13-
gp sync-await run-PostgreSQL
1413
command:
15-
pgcli 'postgres://demo:abc123!@localhost:5432/demodb'
14+
# run postgresql client pgcli and connect to demodb as user demo; wait 30 seconds to be sure that database container is running
15+
sleep 30s && pgcli 'postgres://demo:abc123!@localhost:5432/demodb'
1616

1717
ports:
1818

0 commit comments

Comments
 (0)