forked from pcrockett/mollysocket-fly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (46 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
59 lines (46 loc) · 1.04 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
MOLLYSOCKET_VERSION ?= latest
launch: fly.toml
@flyctl launch \
--copy-config \
--no-public-ips \
--build-arg "MOLLYSOCKET_VERSION=$(MOLLYSOCKET_VERSION)" \
--yes
.PHONY: launch
deploy:
@flyctl deploy --build-arg "MOLLYSOCKET_VERSION=$(MOLLYSOCKET_VERSION)"
.PHONY: deploy
lint:
pre-commit run --all
.PHONY: lint
ssh:
@flyctl ssh console
.PHONY: ssh
qr:
@# if your terminal background is dark:
@flyctl ssh console --command "qr.sh"
.PHONY: qr
qr-invert:
@# if your terminal background is light:
@flyctl ssh console --command "mollysocket qr airgapped"
.PHONY: qr-invert
restart:
@flyctl scale count 0 --process-group worker --yes
@flyctl scale count 1 --process-group worker --yes
.PHONY: restart
status:
@flyctl status
.PHONY: status
logs:
@flyctl logs --no-tail
.PHONY: logs
release:
@gh release create --generate-notes --draft
.PHONY: release
deploy-token:
@flyctl tokens create deploy
.PHONY: deploy-token
healthcheck:
@./bin/set-secret.sh MOLLY_FLY_HEALTHCHECK_URL
.PHONY: healthcheck
fly.toml:
@cp fly.template.toml fly.toml