This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Globals: | |
Function: | |
Environment: | |
Variables: | |
APP_ENV: prod | |
Resources: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: install build package deploy | |
install: | |
composer install --optimize-autoloader --no-dev --no-scripts | |
yarn --production # only if you use Webpack Encore | |
build: | |
yarn build # only if you use Webpack Encore | |
php bin/console cache:clear --no-debug --no-warmup --env=prod | |
php bin/console cache:warmup --env=prod |