31
33

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.

foreverメモ

Last updated at Posted at 2013-12-05

foreverはNode.jsのデーモン化ツール。
nodemonのほうが高機能っぽい?
#インストール
npm install forever -g
npmはNode.jsのパッケージマネージャ。-gはグローバルインストール。付けないとアプリごとのローカルインストールになる。
#使い方
##起動
node app
の代わりに
forever -w start app.js
-wはファイルの変更を監視して自動的に再起動。便利。
##現在動いているプロセス表示
forever list
##ログ表示
forever logs app.js
##停止
forever stop app.js

31
33
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
31
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?