Skip to Content

Hi all,

 

Recently it became possible to create and deploy multi-target apps from the SAP Web IDE CP to the Cloud Foundry platform. This is how you can do so:

  1. Create a Multi-Target Application by selecting it from the wizard

 

2. Give it a name

3. Give the app an id, version and description

 

4. Add an HTML 5 module for the UI5 app

5. Select the UI5 template you would like to use for start creating your UI5 app

6. Give the UI5 app a name and namespace

7. Enter a name for the view

8. Create your view (just a label for this tutorial)

9. You can test the app by right clicking on the index.html page ==> Run ==> Run index.html

10. Configure Cloud Foundry => go to project settings

11. Select the cf eu endpoint, your organization and space ==> Save.

The first time, you’ll have to install the builder. Just click on install builder. (this can take a few minutes)

12. Build your Multi-Target App

13. The build generated a .mtar file in the folder mta_archives!

14. Right click on the mtar file and you can deploy it to CloudFoundry 🙂

15. Enter your CloudFoundry settings, same as in the project settings.

16. And your done 🙂

BUT! Working on a trial account comes with a few limitations.

One of these limitations is the memory quote of your CloudFoundry space. This is limited to 1024MB… Guess what, installing the builder takes the full memory…

When deploying a second app will give you the following error:

Workaround 🙂

I noticed that the builder is not using the full memory that’s allocated to it. Luckily we can change the memory quota of an app.

Go to your space where you see the builder and your app.

Go into the builder app and click on “Change Quota”

Change the memory quota to 768 MB

And now you’ll be able to deploy a second app on your TRIAL account 🙂

Enjoy experimenting with CloudFoundry on your Trial account!

 

Best regards,

Wouter

To report this post you need to login first.

12 Comments

You must be Logged on to comment or reply to a post.

    1. Wouter Lemaire Post author

      Gregor,

      This is how I included nodejs by using the web ide: https://blogs.sap.com/2017/09/23/create-cloudfoundry-app-with-mongodb-and-express-nodejs-in-sap-web-ide/

      Br,

      Wouter

      (0) 
  1. Jaglika Perkova

    In order to be able to manage the Space, you need to provide an user credentials, username and password. For me it worked providing my email and password that I use to log on. I don’t know why I don’t have an username.

     

    Regards,

    Jaglika

    (1) 
  2. Former Member

    Hi Wouter,

    I’m trying with the same approach. But couldn’t get the .MTAR file generated. Please find the screen shot below. It would be helpful if you put some light. Thanks a lot!

     

     

    (1) 
    1. Wouter Lemaire Post author

      If the build is completed, you should find the mtar in the “mta_archives” folder. If this is not the case, probably something is going wrong…

      (0) 
  3. Baidya Nath Kumar

    Hi Wouter Lemaire ,

     

    Probably it’s a dumb question but i have to admit that i have just started learning about cloud foundry and i don’t have enough Knowledge.

    After following all the steps, i was able to deploy my app on cloud foundry but i don’t know how to access it. Following is what i have where C4C_Cloud is my Project name.

    Can you help me that.

    (1) 
    1. Wouter Lemaire Post author

      The structure is different compared to neo and maybe not that clear. You should find your app in the space that you have deployed it.

      (0) 
  4. Odin Marole

    Hi Wouter and thank you so much for this tutorial.

    I was able to upload my web app on my “CF trial” account. Everything was surprisingly fast and smooth. I knew it was too good to be true…

    My app is displayed on my CF account alright.

    The problem is that anytime I try to access it through the “application route”, I’m presented with a blank screen stating just “Not Found”.

    Did you experience this issue previously? Is there any hint you guys might share to help me fixing this situation?

    Thanks for your availability folks.

    (1) 
    1. Martin Schenk

      Hi Odin,

       

      i am not sure if your problem is still up to date but if it is:

      the url in the screen looks like the weburl for the BUILDER and not the application you have created within the tutorial.

      The builder is visible along the applicationms in your space as well but it is not accessible and will give you the error message you have posted.

      can you provide a screenshot of the application overview tab within your space?

       

      Best regards,

      Martin

      (0) 

Leave a Reply