Skip to content

Instantly share code, notes, and snippets.

@mtornwall
Created April 21, 2013 12:22
Show Gist options
  • Save mtornwall/5429419 to your computer and use it in GitHub Desktop.
Save mtornwall/5429419 to your computer and use it in GitHub Desktop.
simple erlang app start
start_graph(App) ->
case application:start(App) of
ok ->
ok;
{error, {already_started, App}} ->
ok;
{error, {not_started, AppDep}} ->
start_graph(AppDep),
start_graph(App) % Try again
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment