fxa/packages/fxa-event-broker/pm2.config.js

33 строки
930 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const PATH = process.env.PATH.split(':')
.filter((p) => !p.includes(process.env.TMPDIR))
.join(':');
module.exports = {
apps: [
{
name: 'event-broker',
script: 'node -r ts-node/register src/bin/workerDev.ts',
cwd: __dirname,
max_restarts: '1',
env: {
NODE_ENV: 'development',
NODE_OPTIONS: '--inspect=9180',
TS_NODE_TRANSPILE_ONLY: 'true',
TS_NODE_FILES: 'true',
WORKER_HOST: '0.0.0.0',
PUBSUB_EMULATOR_HOST: 'localhost:8085',
FIRESTORE_EMULATOR_HOST: 'localhost:9090',
PUBSUB_PROXY_PORT: '8090',
PATH,
},
filter_env: ['npm_'],
watch: ['src', 'config'],
min_uptime: '2m',
},
],
};