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 do I pass the -config apps/appname/priv/app.config
and -s lager
options while using rebar generate
I suspect it goes somewhere in reltool.config but not sure where ?
Also, to clarify, 'rebar generate' works fine but when launching the generated version from the bin folder the error has to do with the config not being loaded.