Skip to content

Instantly share code, notes, and snippets.

View thibaudlemaire's full-sized avatar

Thibaud Lemaire thibaudlemaire

  • Theodo
  • Paris
View GitHub Profile
@thibaudlemaire
thibaudlemaire / Makefile
Created May 23, 2019 08:24
Makefile for Symfony deployment on AWS Lambda using Bref
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
@thibaudlemaire
thibaudlemaire / template.yaml
Last active June 3, 2019 15:54
Basic Sam template to run Symfony application on AWS Lambda using Bref
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Environment:
Variables:
APP_ENV: prod
Resources: