Skip to content

Commit

Permalink
try poetry install
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Dec 8, 2024
1 parent ab315e2 commit 4ae024c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,19 @@ resource "aws_instance" "py_server" {
sudo apt-get update
sudo apt-get install -y python3 python3-pip git curl
su ubuntu
python3 -m pip install -U poetry
cd $WORKDIR
git clone https://github.com/proquickly/$PROJ.git
cd $WORKDIR/$PROJ
export PATH="$HOME/.local/bin:$PATH"
$POETRY/poetry install
cd $WORKDIR/$PROJ/src/$PROJ
nohup $POETRY/poetry run python app.py &
sudo chown -R ubuntu:ubuntu $WORKDIR
su - ubuntu -c '
python3 -m pip install -U poetry
cd $WORKDIR
git clone https://github.com/proquickly/$PROJ.git
cd $WORKDIR/$PROJ
export PATH="$HOME/.local/bin:$PATH"
$POETRY/poetry install
cd $WORKDIR/$PROJ/src/$PROJ
nohup $POETRY/poetry run python app.py &
'
EOF

tags = {
Expand Down

0 comments on commit 4ae024c

Please sign in to comment.