feat(tools): add helper for testing webhooks locally

This commit is contained in:
Mrugesh Mohapatra
2020-03-17 16:14:58 +05:30
committed by mrugesh
parent f25d035e9d
commit d8e5f3ebc8
5 changed files with 122 additions and 16 deletions

View File

@ -80,10 +80,6 @@ app.start = _.once(function() {
module.exports = app;
// start the server if `$ node server.js`
// in production use `$npm start-production`
// or `$node server/production` to start the server
// and wait for DB handshake
if (require.main === module) {
app.start();
}