diff --git a/terraform/main.tf b/terraform/main.tf index c7928ef..ab15e7c 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -34,15 +34,16 @@ resource "aws_instance" "py_server" { #!/bin/bash sudo apt-get update sudo apt-get install -y python3 python3-pip git curl - curl -sSL https://install.python-poetry.org | python3 - + python3 -m venv /home/ubuntu/sys + /home/ubuntu/sys/bin/python3 -m pip install poetry # Clone the GitHub repository 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 + /home/ubuntu/sys/bin/poetry lock + /home/ubuntu/sys/bin/poetry install cd /home/ubuntu/tfgha/src/tfgha nohup python3 app.py &