Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Suj4LB committed Sep 18, 2024
1 parent c85cb47 commit 37c3890
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
chmod 400 mykey.pem
# Copy the files from the current work dir into the EC2 instance, under `~/app`.
scp -o StrictHostKeyChecking=no -i mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:~/app
scp -o StrictHostKeyChecking=no -i mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:~/home/ubuntu/NetflixMovieCatalog/app
# Connect to your EC2 instance and execute the `deploy.sh` script (this script is part of the repo files).
# TODO You need to implement the `deploy.sh` script yourself.
#
# Upon completion, the NetflixMovieCatalog app should be running with its newer version.
# To keep the app running in the background independently on the terminal session you are logging to, configure it as a Linux service.
ssh -i mykey.pem ubuntu@$EC2_PUBLIC_IP "bash ~/app/deploy.sh"
ssh -i mykey.pem ubuntu@$EC2_PUBLIC_IP "bash ~/home/ubuntu/NetflixMovieCatalog/app/deploy.sh"

0 comments on commit 37c3890

Please sign in to comment.