Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8926

nodejsプロセスのデーモン化

$
0
0

nodejsをサーバサイドで起動して常駐プロセス化する場合の選択肢

※expressなどのWebサーバとしての用途ではない場合

  • foreverを使う
  • 別途OSレベルのデーモン化を行う。
    centos,ubuntuなら、Systemdに登録して運用とか。
    この場合は、pacakge.jsonもデプロイ先に配置して依存ライブラリをインストールする。
    dependencyをちゃんとruntimeに必要なもので整理する。

Viewing all articles
Browse latest Browse all 8926

Trending Articles