fxa/packages/fxa-content-server/pm2.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 строки
736 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: 'content',
script: 'node --inspect=9130 server/bin/fxa-content-server.js',
cwd: __dirname,
env: {
NODE_ENV: 'development',
CONFIG_FILES: 'server/config/local.json',
PORT: 3030,
PATH,
},
filter_env: ['npm_'],
watch: ['server'],
max_restarts: '1',
min_uptime: '2m',
time: true,
},
],
};