Skip to content

Commit

Permalink
fixup! EZP-27060: Re-add SYMFONY_ENV failsafe, and comment in .env ab…
Browse files Browse the repository at this point in the history
…out INSTALL_EZ_INSTALL_TYPE usage
  • Loading branch information
glye committed Mar 16, 2017
1 parent 361c1f2 commit d94c2db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Expand Up @@ -22,5 +22,5 @@ REDIS_IMAGE=redis
APP_PROD_IMAGE=my-ez-app
APP_DOCKER_FILE=Dockerfile

# Install config
# Install config, used by .platform.app.yaml among others
INSTALL_EZ_INSTALL_TYPE=clean
6 changes: 6 additions & 0 deletions .platform.app.yaml
Expand Up @@ -47,10 +47,16 @@ hooks:
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
Expand Down

0 comments on commit d94c2db

Please sign in to comment.