Skip to content

Commit

Permalink
Update .platform.app.yaml to fix new Platform.sh changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Aug 14, 2024
1 parent 6f6a4b0 commit 2154c2c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ name: app
# to find the supported versions for the 'python' type.
type: 'python:3.12'

dependencies:
python3:
poetry: '1.8.1'

variables:
env:
DJANGO_SETTINGS_MODULE: 'config.settings.platform'
Expand Down Expand Up @@ -37,15 +41,6 @@ hooks:
# Download the latest version of pip
python3.12 -m pip install --upgrade pip
# Install and configure Poetry
# Set user to false to install Poetry globally
export PIP_USER=false
curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION
# Update PATH to make Poetry available in this hook
export PATH="/app/.local/bin:$PATH"
# Set user to true to install dependencies only in the virtual environment
export PIP_USER=true
# Install dependencies
poetry install --only main
Expand Down

0 comments on commit 2154c2c

Please sign in to comment.