forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (32 loc) · 1.07 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
.EXPORT_ALL_VARIABLES:
# Build the PHP runtimes
runtimes:
cd runtime && make publish
# Generate and deploy the production version of the website using http://couscous.io
website:
# See http://couscous.io/
couscous generate
netlify deploy --prod --dir=.couscous/generated
# Run a local preview of the website using http://couscous.io
website-preview:
couscous preview
website-assets: website/template/output.css
website/template/output.css: website/node_modules website/template/styles.css website/tailwind.js
./website/node_modules/.bin/tailwind build website/template/styles.css -c website/tailwind.js -o website/template/output.css
website/node_modules:
yarn install
# Deploy the demo functions
demo:
rm -rf .couscous
rm -f runtime/export/*.zip
sam package \
--region us-east-2 \
--template-file template.yaml \
--output-template-file output.yaml \
--s3-bucket bref-demo-us-east-2
sam deploy \
--region us-east-2 \
--template-file output.yaml \
--stack-name bref-demo \
--capabilities CAPABILITY_IAM
.PHONY: runtimes website website-preview website-assets demo