See ninenines/cowboy#1593.
The working directory has to match the application name. A dash followed by a version may be present. Without this, you get a hard-to-understand error:
init terminating in do_boot ({{error,{rlx_resolve,{app_not_found,middleware,undefined}}},
[{rlx_resolve,find_app_in_code_path,2,[{_},{_}]},{rlx_resolve,subset,6,[{_},{_}]},{rlx_resolve,solve_release,2,
(wrapped for "readability"; the app is called middleware)
The important bit is {error,{rlx_resolve,{app_not_found,APPLICATION_NAME,undefined}}}.
This is particularly a problem if you're building inside a container (because it's common to use WORKDIR /build, and that's not gonna match).
See ninenines/cowboy#1593.
The working directory has to match the application name. A dash followed by a version may be present. Without this, you get a hard-to-understand error:
(wrapped for "readability"; the app is called
middleware)The important bit is
{error,{rlx_resolve,{app_not_found,APPLICATION_NAME,undefined}}}.This is particularly a problem if you're building inside a container (because it's common to use
WORKDIR /build, and that's not gonna match).