Skip to content

Commit

Permalink
Merge pull request #10 from proquickly/develop
Browse files Browse the repository at this point in the history
use pip to install poetry in own venv called sys
  • Loading branch information
proquickly authored Dec 5, 2024
2 parents 6294c07 + d71b193 commit 1b7b0c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ resource "aws_instance" "py_server" {
sudo apt-get update
sudo apt-get install -y python3 python3-pip git curl
python3 -m venv /home/ubuntu/sys
/home/ubuntu/sys/bin/python3 -m pip install poetry
python3 -m pip install -U poetry
# Clone the GitHub repository
cd /home/ubuntu
git clone https://github.com/proquickly/tfgha.git
cd /home/ubuntu/tfgha
/home/ubuntu/sys/bin/poetry lock
/home/ubuntu/sys/bin/poetry install
/home/ubuntu/.local/bin/poetry lock
/home/ubuntu/.local/bin/poetry install
cd /home/ubuntu/tfgha/src/tfgha
nohup python3 app.py &
nohup /home/ubuntu/.local/bin/poetry run python app.py &
EOF

tags = {
Expand Down

0 comments on commit 1b7b0c3

Please sign in to comment.