Skip to content

Commit

Permalink
Debug workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Nov 2, 2023
1 parent 1237302 commit 9c441a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-server-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@ jobs:
docker compose -f track/base.yml -f track/prod.yml pull
docker compose -f track/base.yml -f track/prod.yml down
docker compose -f track/base.yml -f track/prod.yml up -d
echo "Status:"
docker compose -f track/base.yml -f track/prod.yml ps
ENDSSH
1 change: 1 addition & 0 deletions .github/workflows/restore_from_backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
echo "Preparing for restore."
docker compose -f track/base.yml -f track/prod.yml exec db psql -U postgres -c "DROP DATABASE IF EXISTS trackdb;" || { echo "Failed to drop database"; exit 1; }
echo "After drop..."
sleep 1
docker compose -f track/base.yml -f track/prod.yml exec db psql -U postgres -c "CREATE DATABASE trackdb;" || { echo "Failed to create database"; exit 1; }
Expand Down
8 changes: 4 additions & 4 deletions ops/curl_weight_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ fi
echo "Listing weights:"
curl -X GET $HOST/api/weights

# echo "Creating weight:"
# curl -X POST $HOST/api/weights -H "Content-Type: application/json" -d '{"weight_kg": 65.1, "measured_at": "2022-11-01T12:34:56" }'
echo "Creating weight:"
curl -X POST $HOST/api/weights -H "Content-Type: application/json" -d '{"weight_kg": 65.1, "measured_at": "2022-11-01T12:34:56" }'

# echo "Listing weights:"
# curl -X GET $HOST/api/weights
echo "Listing weights:"
curl -X GET $HOST/api/weights

0 comments on commit 9c441a4

Please sign in to comment.