watson-developer-cloud / discovery-nodejs

This is a deprecated Watson Discovery Service Demo. A link to the newly supported demo is below
https://www.ibm.com/demos/live/watson-discovery/self-service
MIT License
76 stars 178 forks source link

Can't deploy to cloud #110

Closed rhagarty closed 6 years ago

rhagarty commented 6 years ago

@germanattanasio - this works fine when running locally, but I'm running into an issue when trying to deploy to cloud. Note that there is no other app in my space with this name, and that there are no log errors in the app log from the IBM Cloud UI.

rhagarty@Richs-MBP-15 discovery-nodejs (master) $ ibmcloud app push
Invoking 'cf push'...

Pushing from manifest to org IBM Cloud Storage / space dev as rich.hagarty@ibm.com...
Using manifest file /Users/rhagarty/journeys/discovery-nodejs/manifest.yml

Deprecation warning: Specifying app manifest attributes at the top level is deprecated. Found: command, env, instances, memory, name, services.
Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for alternatives and other app manifest deprecations. This feature will be removed in the future.

Using manifest file /Users/rhagarty/journeys/discovery-nodejs/manifest.yml

Creating app discovery-news-demo-crawl-date in org IBM Cloud Storage / space dev as rich.hagarty@ibm.com...
OK

Creating route discovery-news-demo-crawl-date.mybluemix.net...
OK

FAILED
Server error, status code: 400, error code: 210003, message: The host is taken: discovery-news-demo-crawl-date
germanattanasio commented 6 years ago

Change the name to something unique like discovery-demo-by-rhagarty

rhagarty commented 6 years ago

@germanattanasio ok, that was my mistake - should have realized namespace is all of 'mybluemix.net'. That got me further, but still running into error:

Error: spawn ./node_modules/react-scripts/bin/react-scripts.js ENOENT

I see 'react-scripts' in package.json, but only under devDependencies.

watson-github-bot commented 5 years ago

:tada: This issue has been resolved in version 1.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: