2020-04-13 02:54:49 +03:00
|
|
|
/* 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/. */
|
|
|
|
|
2020-06-03 01:02:19 +03:00
|
|
|
const PATH = process.env.PATH.split(':')
|
|
|
|
.filter((p) => !p.includes(process.env.TMPDIR))
|
|
|
|
.join(':');
|
|
|
|
|
2020-04-13 02:54:49 +03:00
|
|
|
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,
|
2020-06-03 01:02:19 +03:00
|
|
|
PATH,
|
2020-04-13 02:54:49 +03:00
|
|
|
},
|
2020-05-15 03:48:39 +03:00
|
|
|
filter_env: ['npm_'],
|
2020-04-13 02:54:49 +03:00
|
|
|
watch: ['server'],
|
|
|
|
max_restarts: '1',
|
|
|
|
min_uptime: '2m',
|
2020-06-18 03:01:16 +03:00
|
|
|
time: true,
|
2020-04-13 02:54:49 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|