on 04-05-2021 6:25 AM
Hi,
I want to deploy my Angular Application with on-premise(ABAP System) as backend to SAP Cloud Foundry.
My manifest.yml file looks like this.
applications:
- name: app-angular
memory: 512M
disk_quota: 1024M
instances: 1
buildpack: nodejs_buildpack
services:
- destination_service
- uaa_service
- connectivity_service
I am using cf CLI to deploy the app.
When I execute 'cf push' command, I am facing this error:
-----> Building dependenciesInstalling node modules (package.json) Error staging application: App staging failed in the buildpack compile phaseFAILED
Can you please help me resolve this error. If its related to node version, please let me know how to determine the correct one.
Hi shruthiumashankar,
Please change you manifest.yml file to use buildpack 'staticfile_buildpack' instead of nodejs.
The nodejs buildpack is used for pure node applications whereas angular is precompiled and depends only on a server to provide the files to the end user. Static File implements an Nginx server that will serve the static html files to the browser.
If you are interested on working with an MTA type project, you could use nodejs module with the SAP AppRouter application (which runs on NodeJS). In its configuration file xs-app.json you would add a route to the static folder inside that module where you have the Angular precompiled files.
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot ivan.mirisola . I used staticfile_buildpack and it worked !!
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.