Open zkessin opened 8 years ago
Hm, do you have any other parts of your rebar config? Like a profiles or overrides section?
Since release
will run the same compile
task as shell
does it makes me think there must be something in the profiles config that is causing the issue.
Holy crap, this was from 2016?? Really sorry :(
{erl_opts, [ debug_info ,{i, "./include"} % 指定include文件目录 ,{d, 'NOTEST', true} ,{parse_transform, lager_transform}
]}.
{plugins, [ {rebar3_erlydtl_plugin, ".*", {git, "https://github.com/tsloughter/rebar3_erlydtl_plugin.git", {branch, "master"}}} ]}.
{deps, [ {snappyer, {git, "https://github.com/zmstone/snappyer.git", {tag, "1.2.1"}}}, {hpack, {git, "https://github.com/joedevivo/hpack.git", {tag, "0.2.3"}}}, {eredis, {git, "https://github.com/wooga/eredis.git", {tag, "v1.1.0"}}}, {eredis_pool, {git, "https://github.com/forkopensource/eredis_pool.git", {tag, "v1.0.0"}}}, {brod, {git, "https://github.com/klarna/brod.git", {tag, "3.4.0"}}} ... ... ... ]}.
{erlydtl_opts,[ {doc_root, "templates"}, {compiler_options, [report, return, debug_info]} ]}.
{provider_hooks, [ {pre, [{compile, {erlydtl, compile}}]} ]}.
{relx, [{ release, { octopus, "0.1.0" }, [ ... ... ... sasl]},
{sys_config, "./config/octopus.config"}, {vm_args, "./config/vm.args"},
{dev_mode, false}, % 开发模式 {include_erts, false}, %% {exclude_modules, [{ %% syntax_tools, [merl, merl_transform] %% }]},
{extended_start_script, true} ]}.
{profiles, [{ prod, [ { erl_opts % ,[no_debug_info, warnings_as_errors] ,[no_debug_info] }, {relx, [ {dev_mode, false}, {include_erts, true} ]} ] }] }.
hi @tsloughter
There is templates folder, and *.dtl in it
I tried:
rebar3 compile
and
rebar3 erlydtl compile
There is no error, but not work neither!
Hope your reply, tkx
fixed! {doc_root, "templates"}, the root of templates should be "apps/templates"
I am trying to build a release and I am using a number of erlydtl templates. When I run the rebar3 shell I get all my templates. But when I do 'rebar3 as prod release' they don't get compiled, which of course causes other things to fail as modules are not there.
I have verified that the beam files are not created in the release.
From my rebar.config file