Skip to content

Commit 84278bd

Browse files
authored
Update database connection for table creation
1 parent 1dca889 commit 84278bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Wait for pods
6565
run: |
6666
kubectl wait --for=condition=ready pod -l app=postgres --timeout=120s
67-
kubectl exec $(kubectl get pod -l app=postgres -o jsonpath="{.items[0].metadata.name}") -- psql -U postgres -d todo_db -c "CREATE TABLE IF NOT EXISTS todo (todo_id SERIAL PRIMARY KEY, description VARCHAR(255));"
67+
kubectl exec $(kubectl get pod -l app=postgres -o jsonpath="{.items[0].metadata.name}") -- psql -h 127.0.0.1 -U postgres -d todo_db -c "CREATE TABLE IF NOT EXISTS todo (todo_id SERIAL PRIMARY KEY, description VARCHAR(255));"
6868
kubectl wait --for=condition=ready pod -l app=backend --timeout=120s
6969
kubectl wait --for=condition=ready pod -l app=frontend --timeout=120s
7070

0 commit comments

Comments
 (0)