-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
56 lines (41 loc) · 1.36 KB
/
justfile
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
dev: replapp
test:
mix test
lint:
mix format --check-formatted
build:
mix compile --warnings-as-errors --force
compile: build
ci:
mix ci
setup:
mix setup
clean:
mix clean
mix deps.clean --unused mix
mix phx.digest.clean
clean-all:
mix deps.clean --all --force
mix clean --all --force
phx.digest.clean
mix local.hex --force
mix local.rebar --force
mix deps.get
# Start the Phoenix webserver, enabling the node to accept connections from
# other nodes (including those nodes run by Livebook).
runapp:
elixir --name [email protected] --cookie $NODE_COOKIE -S mix phx.server
# Like `runapp`, but also starts an IEx instance.
replapp:
iex --name [email protected] --cookie $NODE_COOKIE -S mix phx.server
# Start an IEx instance that connects to a node started with `runapp` or
# `replapp`. (`iexc` is short for "IEx connect".)
iexc:
iex --cookie "$NODE_COOKIE" --remsh "[email protected]"
print-versions: print-erlang-version print-elixir-version print-node-version
print-erlang-version:
erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().' -noshell
print-elixir-version:
elixir -e 'IO.puts(System.version)'
print-node-version:
node -e 'console.log(process.version.replace(/^v/,""))'