Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
style: adjust db connection variables
Browse files Browse the repository at this point in the history
  • Loading branch information
amber committed Sep 29, 2024
1 parent 2bf2252 commit 5b45405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
run: |
echo "${{ secrets.EC2_SSH_KEY }}" > private_key && chmod 600 private_key
ssh -i private_key -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ steps.read_ip.outputs.ec2_public_ip }} << 'EOF'
echo "postgres_username=${{ secrets.POSTGRES_USERNAME }}" >> .env
echo "postgres_password=${{ steps.read_info.outputs.rds_password }}" >> .env
echo "rds_endpoint=${{ steps.read_info.outputs.rds_endpoint }}" >> .env
echo "POSTGRES_USERNAME=${{ secrets.POSTGRES_USERNAME }}" >> .env
echo "POSTGRES_PASSWORD=${{ steps.read_info.outputs.rds_password }}" >> .env
echo "POSTGRES_URL=${{ steps.read_info.outputs.rds_endpoint }}" >> .env
docker compose up -d
EOF
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spring:

datasource:
driverClassName: org.postgresql.Driver
url: ${POSTGRES_URL}
url: jdbc:postgresql://${POSTGRES_URL}/nshm
username: ${POSTGRES_USERNAME}
password: ${POSTGRES_PASSWORD}

Expand Down

0 comments on commit 5b45405

Please sign in to comment.