diff --git a/pyproject.toml b/pyproject.toml index bfe5039..75f2124 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ readme = "README.md" packages = [{include = "tfgha", from = "src"}] [tool.poetry.dependencies] -python = "^3.12" +python = "^3.10" duckdb = "^1.1.3" flask = "^3.1.0" diff --git a/terraform/main.tf b/terraform/main.tf index 386895b..9fabe09 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -10,11 +10,14 @@ resource "aws_instance" "py_server" { #!/bin/bash sudo apt-get update sudo apt-get install -y python3 python3-pip git - pip3 install flask requests + curl -sSL https://install.python-poetry.org | python3 - + echo "/home/ubuntu/.local/bin" >> $GITHUB_PATH # Clone the GitHub repository cd /home/ubuntu git clone https://github.com/proquickly/tfgha.git + cd /home/ubuntu/tfgha + poetry install cd /home/ubuntu/tfgha/src/tfgha nohup python3 app.py &