[erlang-questions] Run in development
Tristan Sloughter
t@REDACTED
Sat Mar 26 20:52:03 CET 2016
`rebar3 shell` can start apps and load config instead of creating this
custom commands: http://ferd.ca/dev/rebar3-shell.html
--
Tristan Sloughter
t@REDACTED
On Sat, Mar 26, 2016, at 02:45 PM, Pierre Fenoll wrote:
>
> On 26 March 2016 at 20:36, Roger Lipscombe
> <roger@REDACTED> wrote:
>> erl -pa apps/*/ebin -pa deps/*/ebin -sname foo -config dev -s foo -s
>> bar -s baz
>>
>> ...assuming that we want to run foo, bar and baz top-level
>> applications in a single node (which we do in dev). Then we have
>> (more-or-less):
>>
>> -module(foo).
>> -export([start/0]).
>> start() ->
>> {ok, _} = application:ensure_all_started(foo).
>
> I often find the need to do that exact same pattern:
> * erl … -s myapp
> * add myapp:start/0 that calls ensure_all_started/1 and matches its
> output to {ok, _}
>
> Would it be a terrible idea to add some CLI option "-app" that would
> do the same as "-s"
> except it would call application:ensure_all_started instead of
> application:start ?
> _________________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160326/1ec9a497/attachment.htm>
More information about the erlang-questions
mailing list