Skip to Content

CAP MTA Java Project - Local Database is used on CF

Hello community,

I started a CAP Java project and turned it into a MTA project, you can find it here.

I deployed my db module and my srv module with cf deploy command to my CF account and used cf env to create my default-env.json.

The deployment is running without any errors.

If I start my srv application my service is still running against my local sqllite database:

I attched the compete log file.cockpitcap-srv-2020-05-02-22-10-458430000.txt

What must I do, that my HANA database is used on CF and not my local sqlite database?

Before I turned my project into a MTA project I used cf push and a manifest.yaml for the deployment and it was working fine.

Best Regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 03 at 08:19 AM

    Not sure why you are using default-env.json when you are running the srv module on cf.

    Seeing your package.json, Hana will be linked if the production profile is active, which should be the case however on cf. Could you check the environment variable NODE_ENV in your srv app on cf? What is it’s value?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.