SAP Cloud Platform & Cloud Foundry – test, feedback, tips and tricks

After you followed all the steps to setting up Cloud Foundry in your SAP Cloud Platform Cockpit, itโ€™s time to dig into and like all new environment you are testing, youโ€™ll face some problems.

In this article, Iโ€™ll quickly overview the activation/installation and talk about a simple NodeJS with a MongoDB scenario. I hope it will help you to be more familiar with the tools, to implement your own needs on the platform.

Quick CF activation/installation

Install CF on your machine and follow instructions detailed here. One it’s installed, you need to test the CF CLI by typing cf in your favorite terminal.

A quota was not automatically assigned for my account because I had several sub accounts. Then, when I deployed an application, I get an error message:

Activate MongoDB / PostgreSQL and other services

Follow the path: Cloud Foundry > Services > Service Marketplace and activate the services you want to use. You can directly map the service with your app if you have already deployed it.

Create and deploy a NodeJS

First, you need to create a skeleton NodeJS project using the Nodeclipse available for free on the Eclipse Market or create your own project from scratch using the framework your like. You can simply download this project from my Github account : js-app-for-sap-cloud-foundry.

If you are not using mongodb in the scenario, you can comment the line require(‘./server/db/mongo-connect.js’)(oAppEnv);. It simplifies the workflow, you can uncomment it later. When your project is ready, be sure it compiles by running the two following commands:

npm install
node app.js

If all is OK, your project is ready to be hosted on CF.

// Logon to Could Foundry
cf login
// Enter your credentials and navigate to the space you want to host the app
// Change directory and push it!
cd js-app-for-sap-cloud-foundry
cf push

The file manifest.yml is very important for your app deployment, to specify the app information: commands, name, buildpack, etc. Below, an example of manifest.yml file

---
applications:
- name: js-app
  memory: 512M
  host: js-app
  command: node app.js

Fields you need to know for the manifest.yml file:

Key Value
name The name of the application
buildpack The name of the Node.js buildpack determined before with command cf buildpacks. (by default an auto determination of the buildpack is done if the buildpack information is missing)
command For NodeJS apps, a start command is needed to start the application. Here for example, it’s “node app.js”.
memory RAM available for the application.
disk_quota Disk space available for the application.
host Host information used in the URL which makes the application accessible.

Connect with a MongoDB

The first step is to create a new MongoDB instance. You have to go to your SAP CP CF sub account > Services > Service Marketplace and select MongoDB. Now in your left panel you can select Instances and create a new one (see below)

Now you are able to map your instance with the app you deployed before. The manifest.yml will change a little bit and the service will be mapped like this:

---
applications:
- name: js-app
  memory: 512M
  host: js-app
  command: node app.js
  services:
  - mongodb-service 

/!\ “mongodb-service” is the name of you instance, you need to adapt /!\

Useful links

Github | SAP/hcp-cloud-foundry-tutorials
SAP CP | Cloud Foundry Tutorials
Github | Cloud Foundry CLI
Cloud Foundry CLI Reference Guide

Useful CLI commands

cf
cf apps
cf login
cf logout
cf push
cf buildpacks
cf marketplace
cf api api.cf.<host information>
cf create-service mongodb v3.0-dev mongo-service

344 Comments SAP Cloud Platform & Cloud Foundry – test, feedback, tips and tricks

  1. more info

    I just like the valuable information you supply to your articles.
    I will bookmark your blog and check once more right here regularly.
    I am somewhat sure I will be informed plenty of new stuff proper here!

    Best of luck for the following!

    Reply
  2. check here

    Spot on with this write-up, I really believe that this
    site needs much more attention. I’ll probably be back again to
    read more, thanks for the information!

    Reply
  3. more info

    Appreciating the persistence you put into your site and detailed information you offer.
    It’s good to come across a blog every once in a while that isn’t the same unwanted rehashed material.
    Great read! I’ve saved your site and I’m adding your RSS feeds to my Google account.

    Reply
  4. website

    Excellent article. Keep writing such kind of info on your blog.
    Im really impressed by your blog.
    Hi there, You have done an excellent job. I’ll
    certainly digg it and in my opinion recommend to my friends.

    I am sure they’ll be benefited from this site.

    Reply
  5. get more info

    Hi! Do you know if they make any plugins to assist with Search Engine
    Optimization? I’m trying to get my blog to rank
    for some targeted keywords but I’m not seeing very good results.

    If you know of any please share. Thank you!

    Reply
  6. kebe.top

    Thanks for another great article. The place
    else may anybody get that kind of info in such an ideal way of
    writing? I’ve a presentation next week, and I’m on the search for
    such information.

    Have a look at my web page – La Velours Serum (kebe.top)

    Reply
  7. clubriders.men

    I truly love your website.. Very nice colors & theme.
    Did you create this website yourself? Please reply back as I?m hoping to create my own website and would like to find out where you got this from or just what the
    theme is called. Many thanks!

    Also visit my site: Vitalyze Pro Review (clubriders.men)

    Reply
  8. 211.159.150.117

    We are a group of volunteers and starting a new scheme in our community.
    Your web site provided us with valuable info to work on. You have done an impressive job and our whole community will be thankful to you.

    Also visit my web-site :: Bio Wellness CBD
    Gumimes Reviews – 211.159.150.117

    Reply
  9. check here

    Hey! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but
    I’m not seeing very good success. If you know of
    any please share. Thank you!

    Reply
  10. http://usedtiresbrowardcounty.com/modules.php?name=Your_Account&op=userinfo&username=JoyceLett

    I really wanted to construct a small remark so as to appreciate
    you for some of the wonderful guidelines you
    are giving on this website. My long internet research has now been honored
    with really good content to write about with my friends and classmates.
    I ‘d assert that many of us site visitors are unequivocally blessed to be in a
    useful community with so many marvellous professionals with
    very helpful tricks. I feel really happy to have used your
    entire web site and look forward to so many more thrilling minutes reading
    here. Thank you once more for a lot of things.

    my blog post – Montezumas Secret (http://usedtiresbrowardcounty.com/modules.php?name=Your_Account&op=userinfo&username=JoyceLett)

    Reply
  11. 163.30.42.16

    Hello, Neat post. There is an issue along with your web site
    in web explorer, would test this? IE nonetheless is the
    marketplace leader and a large element of people will miss
    your excellent writing because of this problem.

    Check out my web-site :: Green X CBD, 163.30.42.16,

    Reply
  12. http://web.jmjh.tn.edu.tw/~env/modules/profile/userinfo.php?uid=2597188

    Greetings from Ohio! I’m bored to tears at work so I decided to check out your
    site on my iphone during lunch break. I really like the knowledge you provide here and can’t wait to take a look when I get home.

    I’m amazed at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyways, great site!

    Feel free to visit my page … Green Country CBD Review [http://web.jmjh.tn.edu.tw/~env/modules/profile/userinfo.php?uid=2597188]

    Reply
  13. exterminatorsouthflorida.com

    Right here is the right webpage for anyone who wishes to find out about
    this topic. You understand a whole lot its almost tough to argue with you
    (not that I actually will need to…HaHa). You certainly put a
    new spin on a subject that’s been written about for many
    years. Wonderful stuff, just wonderful!

    Feel free to visit my web blog; Green X CBD Gummies Reviews,
    exterminatorsouthflorida.com,

    Reply
  14. check here

    Every weekend i used to pay a quick visit this web page,
    for the reason that i want enjoyment, as this this website conations actually fastidious funny stuff too.

    Reply
  15. 163.30.42.16

    I have not checked in here for a while as I thought it was getting boring, but the last few posts
    are great quality so I guess I’ll add you back to my daily bloglist.
    You deserve it friend ๐Ÿ™‚

    Feel free to surf to my page … Stark Max Keto Pills (163.30.42.16)

    Reply
  16. usedtiresbrowardcounty.com

    I simply wished to thank you very much all over again. I do
    not know what I could possibly have carried out without the type of
    secrets shared by you directly on such topic. It has been a real traumatic
    crisis for me, however , being able to view this skilled manner you resolved the issue
    made me to jump with happiness. I am happy for this support and even hope that you comprehend what an amazing job you happen to be carrying out teaching others with the aid of your webblog.
    I’m certain you haven’t come across any of us.

    Here is my homepage: Keto Advantage Keto Burn Reviews
    (usedtiresbrowardcounty.com)

    Reply
  17. http://163.30.42.16/~health2017/userinfo.php?uid=4225040

    Its such as you learn my thoughts! You appear to know
    a lot approximately this, like you wrote the e book in it or something.
    I think that you can do with some percent to drive
    the message home a little bit, however other than that, that is magnificent blog.
    An excellent read. I’ll certainly be back.

    Have a look at my page; Stark Max Keto Review (http://163.30.42.16/~health2017/userinfo.php?uid=4225040)

    Reply
  18. click here

    I’m no longer positive the place you’re getting your information, but good
    topic. I needs to spend some time studying more or figuring
    out more. Thanks for great information I was looking for this info for my mission.

    Reply
  19. www.fles.hlc.edu.tw

    Its like you read my mind! You seem to know a lot about this,
    like you wrote the book in it or something. I think that you can do with a few pics to drive
    the message home a bit, but other than that, this is
    excellent blog. An excellent read. I’ll certainly be back.

    Also visit my blog Pulse Extend X Review – http://www.fles.hlc.edu.tw

    Reply
  20. website

    Howdy! Do you use Twitter? I’d like to follow you if that would be ok.

    I’m undoubtedly enjoying your blog and look
    forward to new posts.

    Reply
  21. kebe.top

    Hello there! This article could not be written any
    better! Looking through this post reminds me of my previous roommate!

    He always kept preaching about this. I most certainly will forward this article to him.

    Fairly certain he’s going to have a very good read. Thank you for sharing!

    Feel free to surf to my webpage – Pulse Extend
    X Pills (kebe.top)

    Reply
  22. get more info

    What’s Going down i am new to this, I stumbled upon this I have
    discovered It positively helpful and it has helped me out loads.
    I am hoping to contribute & assist different customers like its helped me.
    Good job.

    Reply
  23. Kristian

    I think this is among the most important information for me.
    And i am glad reading your article. But wanna remark on few general things, The site style is great, the articles is really nice
    : D. Good job, cheers

    My blog post … Anavale Serum (Kristian)

    Reply
  24. web.jmjh.tn.edu.tw

    Pretty section of content. I just stumbled upon your
    site and in accession capital to assert that
    I acquire in fact enjoyed account your blog posts. Anyway I will be subscribing to your feeds
    and even I achievement you access consistently fast.

    Also visit my web blog Green X CBD Gummies (web.jmjh.tn.edu.tw)

    Reply
  25. http://clubriders.men/

    Right here is the right website for anyone who hopes to find out about this topic.
    You realize a whole lot its almost hard to argue with you (not that I really will need to?HaHa).
    You certainly put a brand new spin on a topic that’s
    been written about for years. Wonderful stuff, just excellent!

    Check out my web page: Core Keto Pro Ingredients, http://clubriders.men/,

    Reply
  26. mpc-install.com

    I precisely needed to appreciate you all over again. I’m not certain the things that
    I would’ve done without the type of ideas provided by you
    concerning such a situation. It previously was a real traumatic matter
    in my circumstances, nevertheless understanding this specialized style you solved that forced me to weep over
    delight. Now i’m happy for this assistance and even sincerely hope you know what a powerful
    job you were doing training the rest all through your blog post.
    Most likely you have never encountered all of us.

    My website … Keto Advantage (mpc-install.com)

    Reply
  27. http://bbs.shishiedu.com/forum.php?mod=viewthread&tid=115869

    Undeniably consider that that you said. Your favourite reason seemed to be
    at the web the easiest factor to have in mind of. I say to
    you, I certainly get irked while folks think about concerns that
    they just don’t recognise about. You controlled to hit the nail upon the top
    and also defined out the entire thing without having side-effects , folks
    can take a signal. Will likely be back to get more. Thanks

    Look into my blog post; Bio Wellness CBD Gumimes Review,
    http://bbs.shishiedu.com/forum.php?mod=viewthread&tid=115869,

    Reply
  28. http://tagsmark.com/news/public-profile-louannlyons-quick-register-info-free-classifieds-ads

    I’m also writing to let you know of the excellent encounter my child undergone reading your site.
    She came to understand a wide variety of things, not to mention what it is
    like to have a marvelous helping character to make other individuals clearly completely grasp specific impossible subject matter.

    You truly surpassed my expectations. Thank you for rendering these invaluable, safe, explanatory
    and also easy thoughts on the topic to Ethel.

    My web-site – Viaxmed Effect Plus; http://tagsmark.com/news/public-profile-louannlyons-quick-register-info-free-classifieds-ads,

    Reply
  29. clubriders.men

    Wow! This can be one particular of the most helpful blogs We have ever
    arrive across on this subject. Basically Great. I’m also a specialist in this
    topic therefore I can understand your effort.

    Feel free to visit my blog post :: Provia NO2 Reviews, clubriders.men,

    Reply
  30. kebe.top

    Hi, this weekend is good in support of me, because
    this point in time i am reading this enormous educational piece of writing here at my residence.

    Here is my web-site :: Provia NO2 – kebe.top,

    Reply
  31. read more

    Hey! I know this is somewhat off-topic but I had to
    ask. Does building a well-established blog such as yours require a lot of work?
    I’m brand new to running a blog but I do write
    in my journal on a daily basis. I’d like to start a blog so I will be
    able to share my own experience and thoughts online.
    Please let me know if you have any recommendations or tips
    for new aspiring blog owners. Appreciate it!

    Reply
  32. website

    excellent issues altogether, you simply won a new reader.

    What may you suggest in regards to your
    put up that you just made some days ago? Any certain?

    Reply
  33. here

    I really like your blog.. very nice colors & theme. Did you make this website yourself or
    did you hire someone to do it for you? Plz answer back as I’m looking to create my own blog and would like to
    find out where u got this from. cheers

    Reply
  34. get more info

    Woah! I’m really enjoying the template/theme of this website.

    It’s simple, yet effective. A lot of times it’s challenging
    to get that “perfect balance” between usability and visual
    appeal. I must say that you’ve done a fantastic job with this.
    Additionally, the blog loads super fast for me on Chrome.
    Excellent Blog!

    Reply
  35. here

    I like the valuable info you provide in your articles. I’ll bookmark your weblog and
    check again here frequently. I am quite certain I’ll learn many new stuff right here!
    Good luck for the next!

    Reply
  36. check here

    Please let me know if you’re looking for a article writer for your
    blog. You have some really good articles and I believe
    I would be a good asset. If you ever want to take some of the load off, I’d love to write some content
    for your blog in exchange for a link back to mine.
    Please blast me an email if interested. Regards!

    Reply
  37. more info

    I have learn some just right stuff here. Certainly price bookmarking for revisiting.
    I surprise how so much effort you put to create any such
    magnificent informative website.

    Reply
  38. check here

    I really like your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire someone to do it
    for you? Plz respond as I’m looking to design my own blog and would
    like to know where u got this from. thanks

    Reply
  39. here

    A person essentially assist to make critically posts I’d state.
    That is the first time I frequented your website page and to this
    point? I surprised with the research you made to make this actual publish incredible.
    Magnificent activity!

    Reply
  40. get more info

    whoah this blog is great i really like reading your posts.
    Stay up the good work! You recognize, many people are hunting around for this
    information, you could aid them greatly.

    Reply
  41. click here

    I think everything posted was very logical. However, think about this, suppose you typed a catchier
    title? I am not saying your information isn’t good., but suppose you added a headline
    that makes people desire more? I mean SAP Cloud Platform & Cloud Foundry
    – test, feedback, tips and tricks | Joey Bronner
    is a little vanilla. You ought to glance at Yahoo’s home
    page and see how they create article titles to get viewers to click.
    You might add a video or a picture or two to get people excited
    about what you’ve written. In my opinion, it might bring your blog a little
    bit more interesting.

    Reply
  42. get more info

    Excellent article. Keep writing such kind of info on your blog.
    Im really impressed by your blog.
    Hello there, You’ve done an incredible job. I’ll definitely
    digg it and individually recommend to my friends.
    I’m confident they’ll be benefited from this web site.

    Reply
  43. read more

    Thanks for the good writeup. It actually was a
    enjoyment account it. Look complex to far delivered agreeable from you!
    However, how could we communicate?

    Reply
  44. designervintage

    Whats up are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and
    create my own. Do you require any html coding expertise to make your own blog?
    Any help would be really appreciated!

    Reply
  45. Marisol

    hello there and thank you for your information โ€“ I’ve certainly
    picked up anything new from right here. I did however expertise a
    few technical points using this website, since I experienced to reload the site many times previous
    to I could get it to load correctly. I had been wondering if your web host is OK?
    Not that I am complaining, but sluggish loading instances times will often affect your placement
    in google and can damage your quality score if advertising and marketing with Adwords.
    Well I am adding this RSS to my email and can look out for a lot more of your respective interesting content.
    Ensure that you update this again soon.

    Reply
  46. ์ƒŒ์ฆˆ์นด์ง€๋…ธ

    I truly appreciate this article post. Want more.
    you are really a good webmaster. The site loading pace is amazing. It seems that you are doing any unique trick. In addition, The contents are masterpiece. you have done a great task on this matter!
    It as not that I want to duplicate your web site, but I really like the pattern. Could you tell me which theme are you using? Or was it tailor made?
    Only wanna remark that you have a very nice internet site , I the design and style it actually stands out.
    Really appreciate you sharing this blog.Much thanks again. Want more.
    It as arduous to seek out knowledgeable individuals on this matter, however you sound like you already know what you are talking about! Thanks
    Im no expert, but I feel you just made the best point. You obviously understand what youre talking about, and I can really get behind that. Thanks for staying so upfront and so genuine.
    I really liked your blog post.Really thank you! Awesome.
    Wow, incredible blog layout! How long have you been blogging for? you make running a blog look easy. The whole glance of your web site is wonderful, as well as the content!

    Reply
  47. ์šฐ๋ฆฌ์นด์ง€๋…ธ

    Wow, awesome blog format! How long have you been running a blog for? you make blogging glance easy. The entire glance of your website is magnificent, let alone the content material!
    You should participate in a contest for the most effective blogs on the web. I will suggest this web site!
    Wow, great blog article.Really thank you! Really Great.
    I think other site proprietors should take this site as an model, very clean and excellent user friendly style and design, let alone the content. You are an expert in this topic!
    I value the blog article.Really looking forward to read more. Keep writing.
    Some really good blog posts on this website , regards for contribution.
    Really enjoyed this blog.Much thanks again. Really Great.
    There is certainly a lot to find out about this topic. I like all the points you made.

    Reply
  48. ๋ฐ”์นด๋ผ์‚ฌ์ดํŠธ

    You made some decent factors there. I regarded on the internet for the difficulty and located most individuals will associate with together with your website.
    Wonderful blog! I found it while browsing on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I ave been trying for a while but I never seem to get there! Cheers

    Reply
  49. CoreyTuh

    This year turned out to be very difficult. But we have optimized and reduced the cost of our products!
    It is almost impossible to find prices lower than ours, the sale is at the cost price level.
    Watch and be surprised by our super low prices https://is.gd/72jG3I

    Reply
  50. CoreyTuh

    This year turned out to be very difficult. But we have optimized and reduced the cost of our products!
    It is almost impossible to find prices lower than ours, the sale is at the cost price level.
    Watch and be surprised by our super low prices https://cutt.us/6nChw

    Reply
  51. Silvia

    Hi, I do believe this is an excellent site.
    I stumbledupon it ๐Ÿ˜‰ I will revisit yet again since I bookmarked it.
    Money and freedom is the greatest way to change, may you be
    rich and continue to help other people.

    Reply
  52. George

    Hello! I know this is somewhat off-topic but I needed to ask.
    Does managing a well-established website such as yours require a massive
    amount work? I am completely new to writing a blog but I do write in my journal everyday.
    I’d like to start a blog so I will be able to share my experience and thoughts online.

    Please let me know if you have any suggestions or tips for brand new aspiring blog owners.
    Appreciate it!

    Reply

Leave a Reply

Your email address will not be published.