marklogic-community / grove

Grove, a toolkit full of tooling, templates, and other resources that help with building UI applications on top of MarkLogic.
https://marklogic-community.github.io/grove/
Other
5 stars 2 forks source link

pm2 start throws "script not found" error #12

Open sjordan1975 opened 5 years ago

sjordan1975 commented 5 years ago

Attempting to use the Vue Grove Build, running the following from within project directory

pm2 start ecosystem.config.js --env=production

Throws error

[PM2][ERROR] script not found : /vagrant/sample-project/middle-tier/middle-tier/node-app.js

Fixed with the following

// in ecosystem.config.js file
module.exports = {
  apps: [
    {
      name: "@grove-app-name",
      script: "node-app.js",
      cwd: "./middle-tier/",
      watch: true,
      restart_delay: 4000,
      env: {
        NODE_ENV: "development"
      },
      env_production: {
        NODE_ENV: "production",
        GROVE_UI_BUILD_PATH: "../ui/dist/"
      }
    }
  ],
  deploy: {}
};
grtjn commented 5 years ago

Yes thanks. I think I have it pending in local commits. Good reminding to check that..