-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeFile
50 lines (29 loc) · 809 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
### DEV
build-dev:
cd client && $(MAKE) build-dev
cd server && $(MAKE) build
run-dev:
docker-compose -f docker-compose-dev.yml up
### LOCAL (prod config)
build-local:
cd client && $(MAKE) build-local
cd server && $(MAKE) build
run-local:
ENV=local docker-compose -f docker-compose-production.yml up
### PROD
build-production:
cd client && $(MAKE) build-production
cd server && $(MAKE) build
run-production:
ENV=production docker-compose -f docker-compose-production.yml up
stop:
docker-compose down
### REMOTE
SSH_STRING:[email protected]
ssh:
ssh $(SSH_STRING)
# apt install make
copy-files:
scp -r ./* $(SSH_STRING):/root/
# when you add firewall rule, have to add SSH on port 22 or it will stop working
# run challenge with cloudflare on flexible, then bump to full