aboutsummaryrefslogtreecommitdiff
path: root/tictactoe-2/rebar.config
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-03-04 09:15:01 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-03-04 09:15:01 +0100
commitc34d7363b61a9e00c986b79793bf7cdc03e9ea99 (patch)
tree79c9121e2bff6bc938b7b36d1195e5759b163d2c /tictactoe-2/rebar.config
parent0be77ac09408c13cc12b5953b9ac7459b549c202 (diff)
downloaderlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.gz
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.bz2
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.xz
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.zip
wip
Diffstat (limited to 'tictactoe-2/rebar.config')
-rw-r--r--tictactoe-2/rebar.config32
1 files changed, 32 insertions, 0 deletions
diff --git a/tictactoe-2/rebar.config b/tictactoe-2/rebar.config
new file mode 100644
index 0000000..e08a4e2
--- /dev/null
+++ b/tictactoe-2/rebar.config
@@ -0,0 +1,32 @@
+{erl_opts, [debug_info]}.
+{deps, []}.
+
+{relx, [{release, {tictactoe, "0.1.0"},
+ [tictactoe,
+ sasl]},
+
+ {mode, dev},
+
+ %% automatically picked up if the files
+ %% exist but can be set manually, which
+ %% is required if the names aren't exactly
+ %% sys.config and vm.args
+ {sys_config, "./config/sys.config"},
+ {vm_args, "./config/vm.args"}
+
+ %% the .src form of the configuration files do
+ %% not require setting RELX_REPLACE_OS_VARS
+ %% {sys_config_src, "./config/sys.config.src"},
+ %% {vm_args_src, "./config/vm.args.src"}
+]}.
+
+{profiles, [{prod, [{relx,
+ [%% prod is the default mode when prod
+ %% profile is used, so does not have
+ %% to be explicitly included like this
+ {mode, prod}
+
+ %% use minimal mode to exclude ERTS
+ %% {mode, minimal}
+ ]
+ }]}]}.