diff options
-rw-r--r-- | appspec.yml | 2 | ||||
-rwxr-xr-x | scripts/install_dependencies.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/appspec.yml b/appspec.yml index ba4346e..a239ceb 100644 --- a/appspec.yml +++ b/appspec.yml @@ -2,7 +2,7 @@ version: 0.0 os: linux files: - source: / - destination: /home/ec2-user + destination: /home/ec2-user/dep-dir hooks: BeforeInstall: - location: scripts/install_dependencies.sh diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh index 9bbf541..a28af11 100755 --- a/scripts/install_dependencies.sh +++ b/scripts/install_dependencies.sh @@ -3,6 +3,6 @@ if ! command -v poetry &> /dev/null then curl -sSL https://install.python-poetry.org | python3 - fi - +export PATH="/root/.local/bin:$PATH" cd /home/ec2-user -poetry install +/root/.local/bin/poetry install |