1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PM2 で hubot を常時起動する@Windows

Last updated at Posted at 2015-04-18

メモ

なかなかうまくいかなかったがようやく動かせたのでまずはメモ程度に

うまくいかなかった原因

\node_modules\hubot\bin\hubot という CoffeeScript を動かせば良いのだが、coffee の spawn に失敗する

解決法

PM2 には Node.exe を起動してもらって、

coffe-script の coffee という名前のJavascriptに hubot の CoffeeScript を引数で渡して起動する

具体的には

C:\Hubot>pm2 start --name hubot C:\Users\<username>\AppData\Roaming\npm\node_modules\coffee-script\bin\coffee -- node_modules\hubot\bin\hubot -a lets-chat

とすれば良いみたい。

TODO

再起動して様子を見る

【2015/4/19追記】
サービスにならないので、やっぱり winser を使ってサービス化する

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?