Browse Source

fix readme

Namdak Tonpa 9 years ago
parent
commit
7fdfae0267
5 changed files with 12 additions and 5 deletions
  1. 3 3
      README.md
  2. 1 1
      include/mad.hrl
  3. BIN
      mad
  4. 1 1
      priv/web/apps/sample/src/sample.erl
  5. 7 0
      priv/web/vm.args

+ 3 - 3
README.md

@@ -140,10 +140,10 @@ This allows you to distribute you applications with copy deploy
 without Erlang prerequisite.
 
 ```sh
-    $ ./mad app "sample"
+    $ ./mad app sample
     $ cd sample
-    $ ./mad dep com pla release
-    $ _rel/sample/bin/sample console
+    $ ../mad dep com pla rel
+    $ _rel/bin/sample console
 ```
 
 Note: [relx](https://github.com/erlware/relx) must be installed

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"e8b6cb").
+-define(VERSION,"4b8e20").

BIN
mad


+ 1 - 1
priv/web/apps/sample/src/sample.erl

@@ -4,7 +4,7 @@
 -export([init/1, start/2, stop/1, main/1]).
 -compile(export_all).
 
-main(A)    -> mad:main(A).
+main(A)    -> mad_repl:main(A,[]).
 start(_,_) -> supervisor:start_link({local,sample},sample,[]).
 stop(_)    -> ok.
 init([])   -> case cowboy:start_http(http,3,port(),env()) of

+ 7 - 0
priv/web/vm.args

@@ -0,0 +1,7 @@
+-name sample@127.0.0.1
++pc unicode
+-setcookie node_runner
++K true
++A 5
+-env ERL_MAX_PORTS 4096
+-env ERL_FULLSWEEP_AFTER 10