Created
September 26, 2019 19:10
-
-
Save l2ysho/05dc6929d05da6f161f65a628f4f13ce to your computer and use it in GitHub Desktop.
Usefull config files
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
save-exact=true | |
message="v%s" |
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
/** | |
* Start script for pm2 | |
* usage: pm2 start ecosystem.config.js | |
*/ | |
require('dotenv').config(); | |
module.exports = { | |
apps: [ | |
{ | |
name: 'Name', | |
script: 'npm', | |
args: 'start', | |
autorestart: true, | |
instance_var: 'Name', | |
out_file: `${process.env.LOGS_PATH || 'logs'}/out.log`, | |
log_file: `${process.env.LOGS_PATH || 'logs'}/pm2.log`, | |
error_file: `${process.env.LOGS_PATH || 'logs'}/error.log` | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment