-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (25 loc) · 854 Bytes
/
Makefile
File metadata and controls
28 lines (25 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Deploy all the lambdas
deploy: deploy-function deploy-fpm deploy-laravel
deploy-function:
cd function && serverless deploy && serverless info
deploy-fpm:
cd fpm && serverless deploy && serverless info
deploy-laravel:
cd laravel && serverless deploy && serverless info
bench-cold-starts:
./benchmark-coldstarts.sh
bench-function:
./benchmark-function.sh
bench-http:
./benchmark-http.sh
# Set things up
setup:
cd function && composer update --no-dev --classmap-authoritative
cd fpm && composer update --no-dev --classmap-authoritative
cd laravel && composer update --no-dev --classmap-authoritative \
&& php artisan config:clear \
&& rm -f .env && cp .env.production .env \
&& docker run --rm -it -v $$PWD:/var/task --entrypoint php bref/php-83:2 artisan optimize
docker pull bref/php-83:2
docker pull bref/php-83-fpm:2
.PHONY: setup