I rigged up a very simple little OTP application in erlang by following the amazing "How to create a HTTP API with Erlang in 10 Minutes":
It works perfectly when I start erl with command line args as demonstrated in the video. However, if I try to start erl with the -args_file argument, the application does not start.
The args_file is incredibly simple; it has only one line, as follows:
-pa deps/*/ebin ebin -s fancyapi_app
...and here's the error report I get when I try to run erlang:
=INFO REPORT==== 5-Mar-2013::19:32:59 ===
application: fancyapi
exited: {shutdown,{fancyapi_app,start,[normal,[]]}}
type: temporary
Any ideas? Does args_file FileName
cause more to happen than just using regular command line args? Documentation is at:
http://www.erlang.org/doc/man/erl.html
Furthermore, I know the command is working to an extent because if I add, say -sname node
to the text file, the erl prompt shows (node@localhost)1>
.