Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/bash: worker.js: command not found #172

Open
notflip opened this issue Jan 17, 2019 · 0 comments
Open

/bin/bash: worker.js: command not found #172

notflip opened this issue Jan 17, 2019 · 0 comments

Comments

@notflip
Copy link

notflip commented Jan 17, 2019

I added a new script to my ecosystem.config.js, upon publishing I keep getting the following error. (which sets my worker to errored).

2|worker   | /bin/bash: worker.js: command not found

this is my ecosystem declaration

module.exports = {
        apps: [
            {
                name: "api",
                script: "index.js",
                env_production: {
                    "NODE_ENV": "production",
                    "TZ": "UTC"
                }
            },
            {
                name: "cron",
                script: "cron.js --no-autorestart",
                // This is used when starting pm2 with env --production
                env_production: {
                    "NODE_ENV": "production",
                    "TZ": "UTC"
                }
            },
            {
                name: "worker",
                script: "worker.js --no-autorestart",
                // This is used when starting pm2 with env --production
                env_production: {
                    "NODE_ENV": "production",
                    "TZ": "UTC"
                }
            }
        ],
        deploy: {
            production: {
                ref: "origin/master",
                path: "/var/www/production",
                "post-deploy": "npm install && pm2 reload ecosystem.config.js --env production"
            }
        }
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant