「PIONEの起動方法」の版間の差分
提供: Eospedia
行27: | 行27: | ||
% echo $APP_KEY > dropins-app-key.txt | % echo $APP_KEY > dropins-app-key.txt | ||
− | ==== | + | ==== godのコマンド ==== |
+ | <table border = "1"> | ||
+ | <tr> | ||
+ | <th>コマンド名</th> | ||
+ | <th>説明</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>start</td> | ||
+ | <td>start task or group</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>restart</td> | ||
+ | <td>restart task or group</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>stop</td> | ||
+ | <td>stop task or group</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>monitor</td> | ||
+ | <td>monitor task or group</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>unmonitor</td> | ||
+ | <td>unmonitor task or group</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>remove</td> | ||
+ | <td>remove task or group from god</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>load</td> | ||
+ | <td>load a config into a running god</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>log</td> | ||
+ | <td>show realtime log for given task</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>status</td> | ||
+ | <td>show status</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>signal</td> | ||
+ | <td>signal all matching tasks</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>quit</td> | ||
+ | <td>stop god</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>terminal</td> | ||
+ | <td>stop god and all tasks</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>check</td> | ||
+ | <td>run self diagnostic</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | ==== godのオプション ==== | ||
+ | <table border = "1"> | ||
+ | <tr> | ||
+ | <th>オプション名</th> | ||
+ | <th>説明</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-c</td> | ||
+ | <td>Configuration file</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-p</td> | ||
+ | <td>Communications port (default 17165)</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-b</td> | ||
+ | <td>Auto-bind to an unused port number</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-P</td> | ||
+ | <td>Where to write the PID file</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-l</td> | ||
+ | <td>Where to write the log file</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-D</td> | ||
+ | <td>Don't daemonize</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-v</td> | ||
+ | <td>Print the version number and exit</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>-V</td> | ||
+ | <td>Print extended version and build information</td> | ||
+ | </tr> | ||
+ | </table> |
2014年11月10日 (月) 08:58時点における版
起動方法
pione-webclientのためのサーバの起動
通常の利用方法はgodを使用して下記のようになります。
$ bundle exec god -c misc/pione-webclient.god
開発環境においては、foremanを使用して下記にて実行してみましょう。
$ bundle exec foreman start
また、Dropboxを利用してファイルをやり取りすることもでき、Dropboxに入力ファイルを置くことで後の処理を委ねて、出力ファイルだけを得るということもできます。
Note for Drop-ins API
PIONE Webclient enables to handle Drop-ins API for uploading input files from and downloading result files to Dropbox. If you want to use Drop-ins's function, you needs Drop-ins app key in production environment. If you don't have it, you can get from "https://www.dropbox.com/developers/apps".
- How to setup Drop-ins app key
% echo $APP_KEY > dropins-app-key.txt
godのコマンド
コマンド名 | 説明 |
---|---|
start | start task or group |
restart | restart task or group |
stop | stop task or group |
monitor | monitor task or group |
unmonitor | unmonitor task or group |
remove | remove task or group from god |
load | load a config into a running god |
log | show realtime log for given task |
status | show status |
signal | signal all matching tasks |
quit | stop god |
terminal | stop god and all tasks |
check | run self diagnostic |
godのオプション
オプション名 | 説明 |
---|---|
-c | Configuration file |
-p | Communications port (default 17165) |
-b | Auto-bind to an unused port number |
-P | Where to write the PID file |
-l | Where to write the log file |
-D | Don't daemonize |
-v | Print the version number and exit |
-V | Print extended version and build information |