Skip to content

Commit

Permalink
fix key path
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Jul 31, 2024
1 parent 8964e16 commit a5d1d03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web_api/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
# S3_BUCKET="osm-storage"
# MONGODB_URI="your-mongodb-uri"
# DOMAIN="osm.nimh.nih.gov"
# SSH_KEY_PATH=/home/user/.ssh/... # Path to the SSH key used to access the EC2 instance
3 changes: 2 additions & 1 deletion web_api/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if [ -f .env ]; then
exit 1
fi

echo ${SSH_KEY_PATH}

# Log in to Docker Hub
echo "Logging in to Docker Hub..."
Expand Down Expand Up @@ -50,7 +51,7 @@ popd

# Deploy Docker Compose on the instance
echo "Deploying Docker Compose on the instance..."
ssh -o StrictHostKeyChecking=no -i dsst2023.pem ubuntu@$public_dns -p 2222 << EOF
ssh -o StrictHostKeyChecking=no -i $SSH_KEY_PATH ubuntu@$public_dns -p 2222 << EOF
mkdir -p ~/app
cd ~/app
echo "$(<./web_api/compose.yaml)" > compose.yaml
Expand Down

0 comments on commit a5d1d03

Please sign in to comment.