forked from devias-io/material-kit-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 826 Bytes
/
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
deps:
yarn install
start:
PORT=6006 yarn start
start-with-prod-server:
PORT=6006 yarn start-with-prod-server
test:
yarn test
define _deploy
-ssh $1 "mkdir /home/app/$2/facilities-assessment-host/app-servers/dashboard/"
-ssh $1 "rm -rf /home/app/$2/facilities-assessment-host/app-servers/dashboard/*"
scp -r build/* $1:/home/app/$2/facilities-assessment-host/app-servers/dashboard/
endef
build-deployable:
npm run build
deploy-nhsrc-qa: build-deployable
$(call _deploy,gunak-other,qa-server)
deploy-nhsrc-prod: build-deployable
$(call _deploy,gunak-main)
deploy-to-local: build-deployable
rm -rf ../facilities-assessment-server/dashboard/* && cp -r build/* ../facilities-assessment-server/dashboard/
start-local-deployed:
ifeq ($(shell uname),Darwin)
open https://localhost:6002/dashboard/index.html
endif