I’ve created an erlang application where I can use application:start(Name) to successfully start the application.
I tried to create a makefile step that uses rebar to compile, and then manually start the application. But it doesn’t seem to work. Here’s what I have now:
all: compile start
compile:
./rebar compile
start:
erl -s application load shoutcast -s application start shoutcast
All this does is loads up an interactive erlang shell
calls
while the -s flag calls
So, I don’t think you can successfully invoke Application in this way. Assuming you don’t want to create a release and boot file, you could (I think) add a method to you application module, start/0
Then within your makefile
I’m not sure if this violates a best practice, but it should work.