Skip to content

Commit

Permalink
add default to ecosystem config
Browse files Browse the repository at this point in the history
  • Loading branch information
IRONM00N committed Sep 11, 2023
1 parent 975c762 commit fbe7f16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ecosystem.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { user, host } = require('./ecosystem-info.json');
let user, host;

try {
({ user, host } = require('./ecosystem-info.json'));
} catch (e) {
user = 'ironmoon';
host = 'localhost';
}

module.exports = {
apps: [
Expand Down

0 comments on commit fbe7f16

Please sign in to comment.