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

adonisjs-scheduler error in production #14

Open
ritechoice23 opened this issue Dec 28, 2024 · 2 comments
Open

adonisjs-scheduler error in production #14

ritechoice23 opened this issue Dec 28, 2024 · 2 comments

Comments

@ritechoice23
Copy link

when i run this command in production node ace scheduler:run i get the error below

node:internal/modules/cjs/loader:1252
throw err;
^

Error: Cannot find module '/build/scheduler:work'
at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

@KABBOUCHI
Copy link
Owner

most likely u running node scheduler:work instead of node ace scheduler:work

@ritechoice23
Copy link
Author

https://ritechoiceacademy.com/setting-up-scheduler-in-adonisjs?showSharer=true#heading-running-scheduler-in-production

the article above solves the problem

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

2 participants