Skip to content

Commit

Permalink
Merge pull request #8 from proquickly/develop
Browse files Browse the repository at this point in the history
adding ssh for debug and my pubkey
  • Loading branch information
proquickly authored Dec 5, 2024
2 parents 8f7ba8b + 16cda88 commit e67ab14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
working-directory: terraform

- name: Wait for 4 minutes
run: sleep 240 # 240 seconds equals 4 minutes
run: sleep 600 # 240 seconds equals 4 minutes

- name: Destroy Terraform
run: terraform destroy -auto-approve
Expand Down
4 changes: 3 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ resource "aws_instance" "py_server" {
cd /home/ubuntu
git clone https://github.com/proquickly/tfgha.git
cd /home/ubuntu/tfgha
/home/ubuntu/.local/bin/poetry lock
/home/ubuntu/.local/bin/poetry install
cd /home/ubuntu/tfgha/src/tfgha
nohup /home/ubuntu/.local/bin/poetry run python3 app.py &
nohup python3 app.py &
EOF

tags = {
Expand Down

0 comments on commit e67ab14

Please sign in to comment.