-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile-fly-io.yml
45 lines (41 loc) · 1.36 KB
/
Taskfile-fly-io.yml
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
# https://taskfile.dev
version: "3"
## Fly.io https://hexdocs.pm/phoenix/fly.html
# https://fly.io/docs/elixir/getting-started/
vars:
APP: hello_api
FLY_APP_NAME: hello-api-elixir
tasks:
default: echo fly on app {{.FLY_APP_NAME}}
# IEx require mem: 512m+ on fly.io
sh: fly ssh console --pty -C "/app/bin/{{.APP}} remote"
ssh: fly ssh console
st: fly status
# deploy new app version
up: fly deploy --build-arg GIT_COMMIT_ID=$(git log -1 --format="%H") --build-arg GIT_COMMIT_TIME=$(git log -1 --format="%ct")
reup: fly app restart
log: fly logs
open: fly open
launch: fly launch --debug --verbose # --now
# create new app and fly.toml but not deploy
new-app: fly launch --no-deploy
vm: fly machine ls
# vm512: fly machine update e784079b449483 --vm-memory 512
ls: fly app ls
ping: fly app open /ping
# plain env and secrets
env: fly config env
sec: fly secrets ls
show: fly scale show
# fly scale count 2
# sets up a root certificate for your account and then issues a certificate.
ssh-agent: fly ssh issue --agent
# Opening https://fly.io/apps/hello-phx-up
board: fly dashboard
# Add a dedicated ipv4 with: fly ips allocate-v4
## launch demo app from pre-built image directly
# hello: fly launch --image flyio/hellofly:latest
# https://fly.io/docs/flyctl/install/
install: brew install flyctl
# fly auth login
# fly help