Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Suj4LB committed Sep 19, 2024
1 parent 18042b8 commit d11b949
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 18 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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...

0 comments on commit d11b949

Please sign in to comment.