cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the deployed UI module in SCP CAP App with Freestyle Fiori UI

bhavya_sri3
Participant
402

Hi Experts,

I'm trying to develop a fullstack SCP app with CAP services and Freestyle Fiori UI. I had implemented the standalone app router and UI using Yeoman UI generators following https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/eb69b74949f14d16b3c785ebff2...

After deploying I see all the services were created successfully and started as well. I'm even able to access the service running on SCP but I couldn't find the UI where it is deployed. I can't find it under 'HTML5 Applications' or 'Applications' under Space. Please help in finding the UI.

Deployed services in Space

Instances

Running service

Project Structure

MTA file

_schema-version: "3.1"
ID: SalesInfoApp
description: A simple CAP project.
version: 1.0.0
modules:
- name: SalesInfoApp-srv
 type: nodejs
 path: gen/srv
 requires:
 - name: SalesInfoApp-db
 provides:
 - name: srv-api
 properties:
 srv-url: ${default-url}
 parameters:
 buildpack: nodejs_buildpack
- name: SalesInfoApp-db-deployer
 type: hdb
 path: gen/db
 requires:
 - name: SalesInfoApp-db
 parameters:
 buildpack: nodejs_buildpack
- name: salesinfoapp-approuter
 type: approuter.nodejs
 path: app/salesinfoapp-approuter
 requires:
 - name: SalesInfoApp_html_repo_runtime
 - name: uaa_SalesInfoApp
 - name: dest_SalesInfoApp
 - name: srv-api
 group: destinations
 properties:
 forwardAuthToken: true
 name: srv-api
 url: ~{srv-url}
 parameters:
 disk-quota: 256M
 memory: 256M
- name: SalesInfoApp_ui_deployer
 type: com.sap.application.content
 path: app
 requires:
 - name: SalesInfoApp_html_repo_host
 parameters:
 content-target: true
 build-parameters:
 build-result: resources
 requires:
 - artifacts:
 - SalesUI1-content.zip
 name: SalesUI1
 target-path: resources/
- name: SalesUI1
 type: html5
 path: app/SalesUI1
 build-parameters:
 builder: custom
 commands:
 - npm run build
 supported-platforms: []
resources:
- name: SalesInfoApp-db
 type: com.sap.xs.hdi-container
 parameters:
 service: hana
 service-plan: hdi-shared
 properties:
 hdi-service-name: ${service-name}
- name: SalesInfoApp_html_repo_runtime
 type: org.cloudfoundry.managed-service
 parameters:
 service: html5-apps-repo
 service-plan: app-runtime
- name: SalesInfoApp_html_repo_host
 type: org.cloudfoundry.managed-service
 parameters:
 service: html5-apps-repo
 service-plan: app-host
- name: uaa_SalesInfoApp
 type: org.cloudfoundry.managed-service
 parameters:
 path: ./xs-security.json
 service: xsuaa
 service-name: SalesInfoApp-xsuaa-service
 service-plan: application
- name: dest_SalesInfoApp
 type: org.cloudfoundry.managed-service
 parameters:
 service: destination
 service-plan: lite
parameters:
 enable-parallel-deployments: true
build-parameters:
 before-all:
 - builder: custom
 commands:
 - npm install --production
 - npx -p @sap/cds-dk cds build --production

Here is the deployment log:

> Executing task: cf deploy "/home/user/projects/SalesInfoApp/mta_archives/SalesInfoApp_1.0.0.mtar" <


Deploying multi-target app archive /home/user/projects/SalesInfoApp/mta_archives/SalesInfoApp_1.0.0.mtar in org xxx/ space xxx as xxx@xx.com...


Uploading 1 files...
  /home/user/projects/SalesInfoApp/mta_archives/SalesInfoApp_1.0.0.mtar
OK
Operation ID: 853ebfac-f468-11eb-9d0a-eeee0a933e73
Operation ID: 853ebfac-f468-11eb-9d0a-eeee0a933e73
Deploying in org "xxx" and space "xxx"
Detected MTA schema version: "3"
No deployed MTA detected - this is initial deployment
Detected new MTA version: "1.0.0"
Processing service "SalesInfoApp_html_repo_host"...
Creating service "SalesInfoApp_html_repo_host" from MTA resource "SalesInfoApp_html_repo_host"...
Processing service "SalesInfoApp_html_repo_runtime"...
Creating service "SalesInfoApp_html_repo_runtime" from MTA resource "SalesInfoApp_html_repo_runtime"...
Processing service "SalesInfoApp-db"...
Creating service "SalesInfoApp-db" from MTA resource "SalesInfoApp-db"...
Processing service "dest_SalesInfoApp"...
Creating service "dest_SalesInfoApp" from MTA resource "dest_SalesInfoApp"...
Processing service "SalesInfoApp-xsuaa-service"...
Setting service "SalesInfoApp-xsuaa-service" parameters from "xs-security.json"
Creating service "SalesInfoApp-xsuaa-service" from MTA resource "uaa_SalesInfoApp"...
1 of 1 done
1 of 1 done
1 of 1 done
0 of 1 done, (1 creating)
1 of 1 done
0 of 1 done, (1 creating)
0 of 1 done, (1 creating)
0 of 1 done, (1 creating)
0 of 1 done, (1 creating)
1 of 1 done
Creating application "SalesInfoApp-db-deployer" from MTA module "SalesInfoApp-db-deployer"...
Creating application "SalesInfoApp-srv" from MTA module "SalesInfoApp-srv"...
Creating application "salesinfoapp-approuter" from MTA module "salesinfoapp-approuter"...
Binding service instance "SalesInfoApp-db" to application "SalesInfoApp-db-deployer"...
Binding service instance "SalesInfoApp-db" to application "SalesInfoApp-srv"...
Binding service instance "dest_SalesInfoApp" to application "salesinfoapp-approuter"...
Creating service key "SalesInfoApp_ui_deployer-SalesInfoApp_html_repo_host-credentials" for service "SalesInfoApp_html_repo_host"...
Uploading application "SalesInfoApp-db-deployer"...
Binding service instance "SalesInfoApp_html_repo_runtime" to application "salesinfoapp-approuter"...
Uploading application "SalesInfoApp-srv"...
Binding service instance "SalesInfoApp-xsuaa-service" to application "salesinfoapp-approuter"...
Uploading content module "SalesInfoApp_ui_deployer" in target service "SalesInfoApp_html_repo_host"...
Uploading application "salesinfoapp-approuter"...
Started async upload of application "SalesInfoApp-srv"
Started async upload of application "SalesInfoApp-db-deployer"
Deploying content module "SalesInfoApp_ui_deployer" in target service "SalesInfoApp_html_repo_host"...
Started async upload of application "salesinfoapp-approuter"
Scaling application "SalesInfoApp-srv" to "1" instances... 
Scaling application "SalesInfoApp-db-deployer" to "1" instances... 
Staging application "SalesInfoApp-db-deployer"...
Staging application "SalesInfoApp-srv"...
Scaling application "salesinfoapp-approuter" to "1" instances... 
Staging application "salesinfoapp-approuter"...
Application "SalesInfoApp-db-deployer" staged
Executing task "deploy" on application "SalesInfoApp-db-deployer"...
Application "SalesInfoApp-srv" staged
Starting application "SalesInfoApp-srv"...
Application "SalesInfoApp-srv" started and available at "xx-xx-xx-xx-salesinfoapp-xx.cfapps.us10.hana.ondemand.com"
Application "salesinfoapp-approuter" staged
Starting application "salesinfoapp-approuter"...
Application "salesinfoapp-approuter" started and available at "xx-xx-xx-xx-salesinfoapp-approuter.cfapps.us10.hana.ondemand.com"
Skipping deletion of services, because the command line option "--delete-services" is not specified.
Process finished.
Use "cf dmol -i 853ebfac-f468-11eb-9d0a-eeee0a933e73" to download the logs of the process.
mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Are you able to access the UI? Maybe it hasn't been deployed at all. Usually it should be in the "HTML5 Applications" section in your subaccount.

Also, can you share your entire project somewhere so that it's easier to inspect it?

bhavya_sri3
Participant
0 Kudos

Hi Marius,

Unfortunately I'm not able to access the UI and it is not appearing under the "HTML5 Applications" repository of our subaccount as well.

I have uploaded the project in Git. Could you please inspect once and let me know what config I'm missing.

Thanks for your help.

https://github.com/bhavyasrim/SalesInfoApp.git

Thanks,

Bhavyasri M

mcrozier
Discoverer
0 Kudos

Did this ever get solved? We are experiencing the same issue with a CAP MTA project.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

I would suggest that you work through the blog post https://blogs.sap.com/2020/12/15/deploying-a-cap-based-fiori-app-to-a-central-launchpad/ and then apply your learnings to your own app.