mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: priorize ecosystem.config.js
This commit is contained in:
parent
b733baa899
commit
aa5f17d45e
@ -67,7 +67,7 @@ module.exports = function(CLI) {
|
||||
// Find ecosystem file by default
|
||||
if (!Common.isConfigFile(file)) {
|
||||
env = args[0];
|
||||
var defaultConfigNames = ['ecosystem.config.js', 'ecosystem.json', 'ecosystem.json5', 'package.json'];
|
||||
var defaultConfigNames = ['ecosystem.config.js', 'ecosystem.config.cjs', 'ecosystem.config.mjs', 'ecosystem.json', 'ecosystem.json5', 'package.json'];
|
||||
file = Utility.whichFileExists(defaultConfigNames);
|
||||
|
||||
if (!file) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user