Giveth / feathers-giveth

Featherjs server for caching giveth data.
MIT License
87 stars 99 forks source link

Getting missing ecosystem.config file when running 'npm serve' #97

Closed miketeix closed 6 years ago

miketeix commented 6 years ago

I'm looking into getting your feathers app to run with pm2 using the 'npm serve' script but it's complaining about a missing ecosystem.config.js file - was just wondering how I should set it up and how it might relate to the config/default.json file that already exists.

vojtechsimetka commented 6 years ago

Pretty sure this is no secret. This is what it is on our production server:

module.exports = {
  /**
   * Application configuration section
   * http://pm2.keymetrics.io/docs/usage/application-declaration/
   */
  apps : [

    // First application
    {
      name      : 'feathers',
      script    : 'build/index.js',
      log_date_format: 'YYYY-MM-DD HH:mm',
      env: {
        COMMON_VARIABLE: 'true'
      },
      env_production : {
        NODE_ENV: 'production'
      }
    }
  ]
};
vojtechsimetka commented 6 years ago

@perissology should this file ecosystem.config.js be in git?

ewingrj commented 6 years ago

sure