diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 205a273..7fe5b79 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -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 diff --git a/terraform/main.tf b/terraform/main.tf index 71a3fe2..c7928ef 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -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 = {