- First you need to acquire source code for your project. For example, if you are looking at the question and answers service, you could obtain the source code from here: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/qaapi/.For this case, go to Github.com, search for the user astopera, and copy “cognitive-showcase”.
- Go to the manifest.yml file and change name to something unique of your choosing. For example, you could change it to service_name.
- Still in the manifest.yml file, change the code under “service:” (the two lines that start with AWP) to the name of the personality insight you created before in bluemix
- In Terminal, type “Build Gradle”
- In Terminal, type “cf push” and then the name you put in the manifest.yml file
- Once these steps are completed and it is successfully pushed to Bluemix, go to Bluemix and in your dashboard, find the application name you used before in your manifest.yml file and open it. In here, there will be a link to what you pushed into Bluemix.
As I went through this process, I encountered various different problems. Below I will discuss my problems and how I solved them in case you encounter these while you try to complete your project.
Problems and Solutions:
1.
Problem: One problem I encountered when trying to push my application to Bluemix was that Terminal could not determine where it had to take my code from in my files
Solution: It turns out that I had two files containing the code I was pushing to Bluemix, so I needed to delete one.
2.
As I wrote in my directions above, ensure that the names in the manifest.yml file are correct and matchup with what you have created in Bluemix and what you write in Terminal as this can cause problems
2.
As I wrote in my directions above, ensure that the names in the manifest.yml file are correct and matchup with what you have created in Bluemix and what you write in Terminal as this can cause problems
No comments:
Post a Comment