Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

pm2 script is broken #15

Closed
mikeybinns opened this issue Mar 4, 2021 · 2 comments
Closed

pm2 script is broken #15

mikeybinns opened this issue Mar 4, 2021 · 2 comments

Comments

@mikeybinns
Copy link

I cloned a new version of the starter-express, but when I go to run npm run dev I get the following error:

> remix-starter-express@1.0.0 dev C:\Users\mikey\Websites\express_tester
> pm2-dev pm2.config.js

[
  Error: Script not found: C:\Users\mikey\Websites\express_tester\remix run
      at Object.Common.resolveAppAttributes (C:\Users\mikey\Websites\express_tester\node_modules\pm2\lib\Common.js:644:11)
      at C:\Users\mikey\Websites\express_tester\node_modules\pm2\lib\API.js:1132:35
      at C:\Users\mikey\Websites\express_tester\node_modules\async\internal\withoutIndex.js:8:40
      at replenish (C:\Users\mikey\Websites\express_tester\node_modules\async\internal\eachOfLimit.js:81:17)
      at C:\Users\mikey\Websites\express_tester\node_modules\async\internal\eachOfLimit.js:86:9
      at eachLimit (C:\Users\mikey\Websites\express_tester\node_modules\async\eachLimit.js:47:43)
      at awaitable (C:\Users\mikey\Websites\express_tester\node_modules\async\internal\awaitify.js:13:28)
      at startApps (C:\Users\mikey\Websites\express_tester\node_modules\pm2\lib\API.js:1116:7)
      at C:\Users\mikey\Websites\express_tester\node_modules\pm2\lib\API.js:1097:16
      at wrapper (C:\Users\mikey\Websites\express_tester\node_modules\async\internal\once.js:12:16)
]

Environment:

Windows 10
Node v12.21.0
npm v6.14.11
Starter express version current as of 4th March 2021.
Remix v13.0
pm2 v4.5.4

@ebelectr
Copy link

Use this in pm2.config.js:

    {
      name: "Remix",
      script: "./node_modules/@remix-run/dev/cli.js",
      args: "run2",
      ignore_watch: ["."],
      env: {
        NODE_ENV: "development"
      }
    }

@mikeybinns
Copy link
Author

Yep, I can confirm this worked!
Thanks @ebelectr 😀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants