diff --git a/.github/workflows/service-deploy.yaml b/.github/workflows/service-deploy.yaml index 2dd2c64..70d4a59 100644 --- a/.github/workflows/service-deploy.yaml +++ b/.github/workflows/service-deploy.yaml @@ -6,7 +6,7 @@ on: - main env: - EC2_PUBLIC_IP: ec2-18-223-43-49.us-east-2.compute.amazonaws.com # TODO replace to your EC2 instance public IP + EC2_PUBLIC_IP: ec2-18-191-150-153.us-east-2.compute.amazonaws.com # TODO replace to your EC2 instance public IP SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # TODO define this secret in your GitHub repo settings jobs: diff --git a/deploy.sh b/deploy.sh index 11c5981..7e6cb39 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,21 @@ #!/bin/bash +sudo apt update +cd ./NetflixMovieCatalog + +source .venv/bin/activate + +cd .. + +sudo systemctl stop simplepy.service + +sudo systemctl enable simplepy.service + +sudo systemctl start simplepy.service + +sudo apt update + +sudo systemctl start nginx + +sudo apt update # TODO your deploy script implementation... \ No newline at end of file