github.com/symfony-cli/symfony-cli@v0.0.0-20240514161054-ece2df437dfa/commands/testdata/project/.platform.app.yaml (about)

     1  name: slug
     2  
     3  type: php:8.0
     4  
     5  dependencies:
     6      php:
     7          composer/composer: "^2"
     8  
     9  runtime:
    10      extensions:
    11          - apcu
    12          - blackfire
    13          - ctype
    14          - iconv
    15          - mbstring
    16          - pdo_pgsql
    17          - sodium
    18          - xsl
    19          
    20  
    21  variables:
    22      php:
    23          opcache.preload: config/preload.php
    24  build:
    25      flavor: none
    26  
    27  disk: 1024
    28  
    29  web:
    30      locations:
    31          "/":
    32              root: "public"
    33              expires: 1h
    34              passthru: "/index.php"
    35  
    36  mounts:
    37      "/var": { source: local, source_path: var }
    38      
    39  
    40  relationships:
    41      foo: "foo:bar"
    42      foo1: "foo1:bar1"
    43      foo2: "foo2:postgresql"
    44      
    45  hooks:
    46      build: |
    47          set -x -e
    48  
    49          curl -fs https://get.symfony.com/cloud/configurator | bash
    50          
    51          NODE_VERSION=18 symfony-build
    52  
    53      deploy: |
    54          set -x -e
    55  
    56          symfony-deploy
    57  
    58  crons:
    59      security-check:
    60          # Check that no security issues have been found for PHP packages deployed in production
    61          # See https://github.com/fabpot/local-php-security-checker
    62          spec: '50 23 * * *'
    63          cmd: if [ "$PLATFORM_ENVIRONMENT_TYPE" = "production" ]; then croncape php-security-checker; fi
    64  
    65