-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (31 loc) · 1.19 KB
/
makefile
File metadata and controls
40 lines (31 loc) · 1.19 KB
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
39
build-all:
cd portal;./generate.sh
cd portal;cat ./src/Version.purs
cd portal;spago build
cd portal;spago bundle-app
-rm -fR backend/static
cd portal;parcel build --public-url /iothub/ -d ../backend/static index.html
cd backend;stack build --force-dirty
cd backend;stack install
build-portal:
cd portal;./generate.sh
cd portal;cat ./src/Version.purs
cd portal;spago build
cd portal;spago bundle-app
-rm -fR backend/static
cd portal;parcel build --public-url /iothub/ -d ../backend/static index.html
build-backend:
cd backend;stack build
cd backend;stack install
build-certificate:
openssl req -nodes -newkey rsa:4096 -sha512 -x509 -days 365 -subj '/CN=haccsrv/O=IoT Hub for Accessability, Sweden./C=SE' -out deployment/tls.pem -keyout deployment/tls.key
run:
cd backend;./run.sh
image-purescript-build-env:
docker build -t paccbuild:14 -f deployment/Dockerfile.purescript-build-env .
image-haskell-build-env:
docker build -t haccbuild:16.31 -f deployment/Dockerfile.haskell-build-env .
image-build-server:
docker build -t haccsvc:latest -f deployment/Dockerfile.build-server .
image-build-server-local:
docker build -t haccsvc:latest -f deployment/Dockerfile.build-server-local .