Unlocking valves, setting application parameters
I have this on my Makefile:
CONFIG ?= "apps/${NODE}/priv/app.config"
RUN := erl -pa apps/${NODE}/ebin -pa deps/*/ebin -smp enable -s lager -boot start_sasl -config ${CONFIG} ${ERL_ARGS}
How to pass parameters -config apps/appname/priv/app.config
and -s lager
when usingrebar generate
I suspect it goes somewhere in reltool.config, but not sure where?
Also, to clarify, "rebar generate" works fine, but when running the generated version from the bin folder, the error is because the config is not loading.
+3
source to share
1 answer
These flags are usually found in the vm.args file.
It can be generated at startup rebar create-node
, a complete tutorial for armature is here: https://github.com/rebar/rebar/wiki/Release-handling
0
source to share