[erlang-questions] Run in development

Roberto Ostinelli roberto.ostinelli@REDACTED
Sun Mar 27 12:26:16 CEST 2016


Thank you all. Just ensuring we're all on the same spot ^^_

> On 26 mar 2016, at 20:52, Tristan Sloughter <t@REDACTED> wrote:
> 
> `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
>  
> _______________________________________________
> 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/20160327/bc688d3b/attachment.htm>


More information about the erlang-questions mailing list