-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
45 lines (34 loc) · 1.25 KB
/
mise.toml
File metadata and controls
45 lines (34 loc) · 1.25 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
[env]
# Persist history of the IEx (Elixir) and erl (Erlang) shells
ERL_AFLAGS = "-kernel shell_history enabled"
[tasks.log]
run = '''
aws logs tail '/ecs/admin' --follow --profile $1
'''
[tasks.restart]
usage = '''
arg "profile" "AWS profile name" default="dev"
'''
run = '''
aws ecs update-service --cluster graasp-$usage_profile --service admin --force-new-deployment --profile $usage_profile
'''
[tasks.remote]
usage = '''
arg "profile" "AWS profile name" default="dev"
'''
run = [
'aws sts get-caller-identity --profile $usage_profile',
'aws ecs execute-command --cluster graasp-$usage_profile --task $(aws ecs list-tasks --cluster graasp-$usage_profile --service admin --query "taskArns[0]" --output text --profile $usage_profile) --container admin --command "/app/bin/admin remote" --interactive --profile $usage_profile'
]
[tasks.backend-dev]
alias = "server"
run = "mix phx.server"
[tasks.dev]
depends = ["backend-dev", "frontend-dev"]
description = "start the backend and frontend servers in development mode"
[tasks.frontend-build]
run = "cd ../client && pnpm build && cp -r dist/* ../admin/priv/static/client"
description = "Build the frontend from the sibling folder and copy it to the static assets"
[tools]
elixir = "1.19.5-otp-28"
erlang = "28.3"