can i run node with cfexecute
# cfml-general
g
can i run node with cfexecute
m
yes
g
any idea how, i wouold love to explore
because i want to install a package in node and want to run with cfexecute so i can store the data
m
<cfexecute  name = "node" arguments = " hello.js" timeout = "60" variable="message" errorVariable="error_message"></cfexecute>
<cfdump var="#message#">
something like the following should work
g
but you are running js with cfexecute, that is not is gonna work
m
the program running is in name="node", hello.js is the argument passed which is where i just put a hello world to test it
p
It's running ( calling ) out to th eoperating system and running nodejs passing in the node file.
Mitch is correct this is how you do it.
Though personally I'd deploy that as a seperate service and call it with cfhttp
g
interesting with cfhttp, can you provide me an example
i am trying to use one module of nodejs and want to fetch data
p
Jus setup your node app as a API and interfeace with it over http
👍 1