0
0

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 3 years have passed since last update.

nodejsプロセスのデーモン化

Last updated at Posted at 2020-05-09

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

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

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?