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

Forward additional arguments to node process when using the bin commands #82

Open
trygve-lie opened this issue Jun 15, 2023 · 0 comments
Assignees

Comments

@trygve-lie
Copy link
Contributor

In an application built with the podlet server we use the commands of the podlet server to start the process etc. In the applications package.json one end up with ex things like this:

"scripts": {
    "start": "podlet start",
    "build": "podlet build",
},

At the moment the commands in the podlet server is not "forwarding" additional arguments to the node.js process.

Example: In the case of profiling a node.js process node.js has an --inspect which enables a profiler. One normally start an application like so:

"scripts": {
    "start": "node app --inspect"
},

Though; when using the podlet server commands in an app the --inspect argument as so:

"scripts": {
    "start": "podlet start --inspect"
},

is not forwarded to the node.js process and the profiler is not enabled.

The following is not working either:

"scripts": {
    "start": "podlet start -- --inspect"
},

We should "forward" these.

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