@@ -7,15 +7,15 @@ name: app
77# in multiple versions. Check the Python documentation
88# (https://docs.platform.sh/languages/python.html#supported-versions)
99# to find the supported versions for the 'python' type.
10- type : ' python:3.12'
10+ type : " python:3.12"
1111
1212dependencies :
1313 python3 :
14- poetry : ' 1.8.1'
14+ poetry : " 1.8.1"
1515
1616variables :
1717 env :
18- DJANGO_SETTINGS_MODULE : ' config.settings.platform'
18+ DJANGO_SETTINGS_MODULE : " config.settings.platform"
1919 # pip
2020 POETRY_VIRTUALENVS_IN_PROJECT : true
2121 POETRY_VIRTUALENVS_CREATE : true
@@ -30,14 +30,14 @@ disk: 4096
3030# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand
3131# side is in the form <service name>:<endpoint name>.
3232relationships :
33- db : ' db:postgresql'
34- redis : " redis:redis"
33+ db : " db:postgresql"
34+ redis : " redis:redis"
3535
3636hooks :
3737 build : |
3838 # Add platform CLI
3939 curl -sS https://platform.sh/cli/installer | php
40-
40+
4141 # Download the latest version of pip
4242 python3.12 -m pip install --upgrade pip
4343
4949 export NVM_DIR="$PLATFORM_APP_DIR/.nvm"
5050 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
5151 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
52-
52+
5353 nvm install
5454 npm install
5555 mkdir -p templates/static/assets
7272 allow : false
7373 rules :
7474 ' ^/favicon\.ico$ ' :
75- allow : false
75+ allow : false
7676 " /static " :
7777 # Allow liberal controls to allow CORS for admin font assets
7878 headers :
79- Access-Control-Allow-Origin : ' * '
79+ Access-Control-Allow-Origin : " * "
8080 root : static
8181 expires : 1y
8282 allow : true
@@ -111,7 +111,7 @@ crons:
111111 # Take snapshot at 5am every morning
112112 # https://docs.platform.sh/administration/snapshot-and-restore.html#automated-snapshots
113113 snapshot :
114- spec : ' 0 5 * * *'
114+ spec : " 0 5 * * *"
115115 cmd : |
116116 if [ "$PLATFORM_BRANCH" = main ]; then
117117 platform backup:create --yes --no-wait
@@ -120,8 +120,8 @@ crons:
120120 # Renew cert by forcing a redeploy at 4 am (UTC) on the 1st and 15th of every month.
121121 # https://docs.platform.sh/configuration/routes/https.html#automatic-ssl-certificate-renewal
122122 renewcert :
123- spec : ' 0 4 1,15 * *'
123+ spec : " 0 4 1,15 * *"
124124 cmd : |
125125 if [ "$PLATFORM_BRANCH" = main ]; then
126126 platform redeploy --yes --no-wait
127- fi
127+ fi
0 commit comments