diff --git a/bin/deploy b/bin/deploy index 96db86e..eaecd09 100755 --- a/bin/deploy +++ b/bin/deploy @@ -1,6 +1,4 @@ #!/bin/sh -cd /app -git clone git@github.com:proquickly/tfgha.git -cd ./tfgha -poetry install -poetry shell && poetry run src/thgha/app.py +cd /app && git clone git@github.com:proquickly/tfgha.git +cd /app/tfgha && poetry install +cd /app/tfgha && poetry shell && poetry run ./src/thgha/app.py diff --git a/terraform/main.tf b/terraform/main.tf index 4da0023..0f9d5ab 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -13,7 +13,6 @@ resource "aws_instance" "py_server" { curl -sSL https://install.python-poetry.org | python3 - export PATH="$HOME/.local/bin:$PATH" mkdir /app - chmod +x ./bin/deploy ./bin/deploy EOF