Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to deploy from JazzHub to BlueMix?

I'm unable to deploy a NodeJS project from JazzHub to BlueMix.
The project is available here: https://hub.jazz.net/project/tetsujin1979/salesforceMobilePhonebook/ and runs without any problem locally, with the same file layout.
When I deploy to BlueMix, the application is not started, and when I start it, it gives an error.
Checking the logs gives this error message: "Error while getting instances : File error: Request failed for app: Sales ForceMobile Phonebook, instance: 0 and path: / as the instance is not found."

I've seen similar messages from deploying locally, but this is from JazzHub.

Any help would be much appreciated

0 votes



2 answers

Permanent link
Hi Joseph,

I was able to get your application to launch.  When launching from within the JazzHub web IDE, you must have a manifest.yml.  I noticed you had a manifest.yml.v5.  The .v5 extension was added to some of our sample apps so those deploying from the command line would not use the manifest.  You should remove the .v5 extension before trying to push from JazzHub.

I made several changes to your manifest.  The final change I made that got it working was removing spaces from the Name.  I'm not sure if the other changes were required.  Here is what I used:

---
applications:
- name: SalesForceMobilePhonebook
  framework: node
runtime: node08
memory: 128M
instances: 1
host: salesforce-${random-word}
path: "."
command: node app.js
 

While I did get the app to launch, I don't think it's acting as you desire.  I'm getting the error

Express

404 Error: ENOENT, stat './public/index.html'

I don't see ./public/index.html in your files.  Perhaps you haven't pushed that file to your git repo yet.

0 votes


Permanent link
I debugged the problem and it is about spaces in the app name. I raised WI, see https://hub.jazz.net/ccm01/web/projects/srich%20|%20JazzHub#action=com.ibm.team.workitem.viewWorkItem&id=24285
The work will be tracked there.

In the meantime, you should change the name in manifest.yml. Everything else is fine. 'url' is deprecated, but still is fine.
Thanks!

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,700
× 383
× 19
× 6
× 5

Question asked: Mar 30 '14, 8:37 a.m.

Question was seen: 4,264 times

Last updated: Mar 31 '14, 7:39 a.m.

Confirmation Cancel Confirm