I rather figured out how to do child processes in cloudfoundry. Set the Cloud Foundry API endpoint for your subaccount. To find out which one is yours, see: Regions and API Endpoints Available for the CF EnvironmentIn this tutorial, we use as an example. Your Cloud Foundry URL depends on the region where the API endpoint belongs to. OKĮrror: Command failed: /bin/sh: phantomjs: not foundĪt ChildProcess.exithandler (child_process.js:536:15)Īt (events.js:91:17)Īt (child_process.js:805:11)Īt (events.js:88:17)Īt Socket._stroyed (net.js:358:10)Īt ._tickCallback (node. But this option doesnt even work on my local machine (could not call phantomjs.cmd in Windows). 1.First, you need to connect to the SAP BTP, Cloud Foundry environment with your productive subaccount. Ls = childProcess.exec('phantomjs -h', function (error, stdout, stderr) ) īut vmc push on, it gave me error in vmc logs Reading logs/stdout.log. ![]() Var childProcess = require('child_process'), I have below code running fine locally: var port = (_APP_PORT || 3000), Used to indicate the command to start the server.Has anyone tried to run child processes on Cloud Foundry's node.js?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |