Passing cli arguements to nodebb's child processes
Solved
NodeBB Development
-
I'd like to pass
--inspect
to the forked app.js process. Right now I'm simply bypassingnodebb
and doingnode --inspect ./app.js
I'd like to be able to do something like
./nodebb nodearg=--inspect dev
is there a way to do this?I've seen other cli tools that implement something like this
gcc <otherArgs> -Xlinker arg <otherArgs>
arg will be passed to the linker child process
-
@Qwertyzw why?
-
@Qwertyzw
NODE_ENV=development&& ./nodebb build && node --inspect app
should work for that. In the next version of NodeBB, you could even do./nodebb build --dev && node --inspect app
Copyright © 2024 NodeBB | Contributors