From 48f61774e022254adeb3c15afc850fffc887065f Mon Sep 17 00:00:00 2001 From: Andy Miles Date: Thu, 5 Dec 2024 07:04:52 -0800 Subject: [PATCH] tryout of poetry --- terraform/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 35bb292..61d1428 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -9,7 +9,7 @@ resource "aws_instance" "py_server" { user_data = <<-EOF #!/bin/bash sudo apt-get update - sudo apt-get install -y python3 python3-pip git + sudo apt-get install -y python3 python3-pip git curl curl -sSL https://install.python-poetry.org | python3 - # Clone the GitHub repository @@ -19,7 +19,7 @@ resource "aws_instance" "py_server" { /home/ubuntu/.local/bin/poetry install cd /home/ubuntu/tfgha/src/tfgha - nohup python3 app.py & + nohup /home/ubuntu/.local/bin/poetry run python3 app.py & EOF tags = {