process.env.NODE_ENV === 'production'
This commit is contained in:
parent
30e416be93
commit
2217c6e23c
1 changed files with 6 additions and 4 deletions
2
index.js
2
index.js
|
|
@ -84,11 +84,13 @@ const reportIP = async (event, url, country, cycleErrorCounts) => {
|
|||
};
|
||||
|
||||
(async () => {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
try {
|
||||
process.send('ready');
|
||||
} catch (err) {
|
||||
log('info', `Failed to send ready signal to parent process. ${err.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
log('info', 'Starting IP reporting process...');
|
||||
let cycleId = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue