-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1 addition
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
'use strict'; | ||
|
||
/** | ||
* This is a post-start hook that will be called after an app started. | ||
* @param {object} info | ||
* @param {string} info.pid The apps PID | ||
* @param {object} info.stdin The apps STDIN stream | ||
* @param {object} info.stdout The apps STDOUT stream | ||
* @param {object} info.stderr The apps STDERR stream | ||
* @param {object} pm2_env The apps environment variables | ||
* @returns {void} | ||
*/ | ||
module.exports = function hook(info, cb) { | ||
cb(new Error('error-from-post-start-hook-' + info.pid)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
'use strict'; | ||
|
||
/** | ||
* This is a post-start hook that will be called after an app started. | ||
* @param {object} info | ||
* @param {string} info.pid The apps PID | ||
* @param {object} info.stdin The apps STDIN stream | ||
* @param {object} info.stdout The apps STDOUT stream | ||
* @param {object} info.stderr The apps STDERR stream | ||
* @param {object} pm2_env The apps environment variables | ||
* @returns {void} | ||
*/ | ||
module.exports = function hook(info, cb) { | ||
throw new Error('thrown-from-post-start-hook-' + info.pid); | ||
} |