StartCommand

StartCommand

new StartCommand()

Source:
Properties:
Name Type Description
MK_INTRO string The translation key of 'initializing' phase message
MK_MONITORING_TIPS string The tranlation key of 'tips after server started' phase message
The main class that handles the 'start' command execution.

Methods

execute()

Source:
The main method to call another methods sequentially, including decorations output.

startPM2()

Source:
Run 'pm2 start' command that uses the MasteryJS run file (mastery.run.json).

streamLogs()

Source:
See:
Run 'pm2 logs {serverName}' command but pipe the stdio, if error happened then throw the error, otherwise detect if MasteryJS has been started to release/kill the spawned child process.