зеркало из https://github.com/mozilla/fxa.git
29 строки
698 B
JavaScript
29 строки
698 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: 'fortress',
|
|
script: 'node server.js',
|
|
cwd: __dirname,
|
|
max_restarts: '1',
|
|
env: {
|
|
CONFIG_FORTRESS: './config-local.json',
|
|
NODE_ENV: 'dev',
|
|
PORT: '9292',
|
|
PATH,
|
|
},
|
|
filter_env: ['npm_'],
|
|
min_uptime: '2m',
|
|
time: true,
|
|
watch: ['*.js', 'views'],
|
|
},
|
|
],
|
|
};
|