Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27499

platform.sh hooks are not compatible with v2.x

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.0.0
    • 2.0.0
    • Platform.sh

    Description

      Hooks

      Current code:

      hooks:
          build: |
              set -e
              composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader
              rm web/app_dev.php
              . ./.env
              if [ -z "$SYMFONY_ENV" ]; then
                  export SYMFONY_ENV=prod
              fi
              app/console --env=$SYMFONY_ENV assetic:dump
          deploy: |
              set -e
              . ./.env
              if [ -z "$SYMFONY_ENV" ]; then
                  export SYMFONY_ENV=prod
              fi
              if [ ! -f web/var/.platform.installed ]; then
                  php -d memory_limit=-1 app/console ezplatform:install --env=$SYMFONY_ENV $INSTALL_EZ_INSTALL_TYPE
                  touch web/var/.platform.installed
              fi
              app/console --env=$SYMFONY_ENV cache:clear
      

      app/console should be replaced by bin/console

      cache and logs

      • app/cache should be replaced by var/cache
      • app/logs should be replaced by var/logs

      Attachments

        Activity

          People

            Unassigned Unassigned
            sylvain.guittard@ibexa.co Sylvain Guittard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: