watson-developer-cloud / assistant-with-discovery-openwhisk

DEPRECATED: this repo is no longer actively maintained
Apache License 2.0
21 stars 43 forks source link

bluemix deploy #61

Closed mjpradeep closed 5 years ago

mjpradeep commented 6 years ago

i am not able to run this code in bluemix cloud. please help me with the steps to run the application in cloud directly instead of running it in locally.

mjpradeep commented 6 years ago

i am not able to run this code in bluemix cloud. please help me with the steps to run the application in cloud directly instead of running it in locally.

alessandrovignazia commented 6 years ago

I would like to achieve same - please advise - thank you

germanattanasio commented 6 years ago

Can you provide a set of steps with what you are trying to do and the errors you are getting? It's hard to debug the problem otherwise

yogesnsamy commented 5 years ago

@mjpradeep @alessandrovignazia

Create a manifest.yml file which will be referred during deployment. The content will be something like below:

applications:
- name: assistant-with-discovery-openwhisk
  random-route: true
  memory: 128M

Then login to IBM Cloud as you usually do. To deploy the code, use the command: ibmcloud cf push

More detailed explanation can be found here: https://console.bluemix.net/docs/runtimes/nodejs/getting-started.html#getting-started

BurakYilmaz92 commented 5 years ago

@mjpradeep @alessandrovignazia

Create a manifest.yml file which will be referred during deployment. The content will be something like below:

applications:
- name: assistant-with-discovery-openwhisk
  random-route: true
  memory: 128M

Then login to IBM Cloud as you usually do. To deploy the code, use the command: ibmcloud cf push

More detailed explanation can be found here: https://console.bluemix.net/docs/runtimes/nodejs/getting-started.html#getting-started

I am getting this error when I try to deploy, do you how I can solce it :

RR! @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start-js: react-scripts start 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! spawn ENOENT 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! Failed at the @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start-js script 'react-scripts start'. 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! Make sure you have the latest version of node.js and npm installed. 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! If you do, this is most likely a problem with the @ibm-watson/assistant-with-discovery-openwhisk package, 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! not with npm itself. 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! Tell the author that this fails on your system: 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! react-scripts start 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! You can get information on how to open an issue for this project with: 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! npm bugs @ibm-watson/assistant-with-discovery-openwhisk 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! Or if that isn't available, you can get their info via: 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! npm owner ls @ibm-watson/assistant-with-discovery-openwhisk 2019-01-18T14:44:12.19+0100 [APP/PROC/WEB/0] ERR npm ERR! There is likely additional logging output above. 2019-01-18T14:44:12.20+0100 [APP/PROC/WEB/0] ERR npm ERR! Please include the following file with any support request: 2019-01-18T14:44:12.20+0100 [APP/PROC/WEB/0] ERR npm ERR! /home/vcap/app/npm-debug.log 2019-01-18T14:44:12.26+0100 [APP/PROC/WEB/0] ERR ERROR: "start-js" exited with 1. 2019-01-18T14:44:12.29+0100 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.15.0-33-generic 2019-01-18T14:44:12.29+0100 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start" 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! node v6.15.0 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start: npm-run-all -p watch-css start-js 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! Exit status 1 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! Failed at the @ibm-watson/assistant-with-discovery-openwhisk@0.1.0 start script 'npm-run-all -p watch-css start-js'. 2019-01-18T14:44:12.30+0100 [APP/PROC/WEB/0] ERR npm ERR! Make sure you have the latest version of node.js and npm installed.