ソースを参照

Support passing plain arguments to `appname start`

Currently with default simplenode template, `appname console other_args`
will pass ["console", "other_args"] as plain arguments. But
`appname start other_args` effectively calls `appname console`. This
patch replaces this call with `appname console other_args`.
pull/3/head
Alexey Romanov 14年前
コミット
9da87854f2
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      priv/templates/simplenode.runner

+ 2
- 1
priv/templates/simplenode.runner ファイルの表示

@ -62,7 +62,8 @@ case "$1" in
HEART_COMMAND="$RUNNER_BASE_DIR/bin/$SCRIPT start"
export HEART_COMMAND
mkdir -p $PIPE_DIR
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console" 2>&1
shift # remove $1
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console $@" 2>&1
;;
stop)

読み込み中…
キャンセル
保存