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

processes.json array parameters - enclosed in string or not? #568

Closed
dandv opened this issue Jul 14, 2014 · 2 comments
Closed

processes.json array parameters - enclosed in string or not? #568

dandv opened this issue Jul 14, 2014 · 2 comments

Comments

@dandv
Copy link
Contributor

dandv commented Jul 14, 2014

What is the syntax for array parameters declared in processes.json?

I see both string:

"args"        : "['--toto=heya coco', '-d', '1']"

and plain array:

"ignoreWatch"      : ["[\\/\\\\]\\./", "node_modules"],
@rlidwka
Copy link
Collaborator

rlidwka commented Jul 16, 2014

"args" is a string, because it's eval'ed in the child processes. For example, how do you like this one:

"args": "require('fs').writeFileSync('/tmp/evilshell', 'blahblah')",

"ignoreWatch" is a plain array, because it is used in a master process as is.

@soyuka
Copy link
Collaborator

soyuka commented Jul 16, 2014

👍

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

3 participants