Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

pm2 start throws "script not found" error #12

Open
sjordan1975 opened this issue Apr 15, 2019 · 1 comment
Open

pm2 start throws "script not found" error #12

sjordan1975 opened this issue Apr 15, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sjordan1975
Copy link

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
Copy link
Contributor

grtjn commented Apr 15, 2019

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

@grtjn grtjn added the bug Something isn't working label Apr 16, 2019
@grtjn grtjn self-assigned this Apr 16, 2019
@grtjn grtjn added this to the 1.0.0-rc.2 milestone Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants