Skip to content

Instantly share code, notes, and snippets.

@onosendi
Created October 5, 2023 15:09
Show Gist options
  • Save onosendi/2d429141501ad605763e22f7e5dd5487 to your computer and use it in GitHub Desktop.
Save onosendi/2d429141501ad605763e22f7e5dd5487 to your computer and use it in GitHub Desktop.
'use strict';
const path = require('path');
const cwd = path.resolve(__dirname);
const ecosystem_config = {
apps: [
{
name: 'foo app',
script: 'npm run --silent start',
cwd,
},
]
};
module.exports = ecosystem_config;
{
"start": "NODE_ENV=production $NVM_DIR/versions/node/v$(cat .nvmrc)/bin/node entry.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment