cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy React app in Netweaver Gateway

07-06-2020 9:43 AM
sreehari_vpillai Active Contributor
1312 views 7 comments
0 Likes
SAP Managed Tags
Subscribe

Hi There,

I have developer a React app using mix of bootstrap and UI5 web components and built the app locally. SO I have a build folder with me with deploy-able content . Question is, how can I deploy this in Netweaver gateway ?

I tried to copy the content to "Webcontent" folder in UI5 app an deploy. App is not able to resolve Css and Js files.

What other options do I have ?

Sreehari

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

sreehari_vpillai
Active Contributor
0 Likes

Ok got it.

I manually changed the linked css & js reference path accordign to the deployment location. It works !!!!!

alagar_pandian
Participant
0 Likes

Hi Sree,

I am facing the same issue. Can you tell me the exact steps that you followed to deploy react as BSP application.

Thanks in advance.

sreehari_vpillai
Active Contributor
0 Likes

I don't remember exactly. I built the react project to get the web app folder. It has linking issue. So I manually updated the resource roots, where ever failed ..
My bad I am not remembering exactly. But, if you could post a question with screenshots and mention me lets have a look

vishnucta
Active Participant
0 Likes

sreehari.vpillai Have got any new approach for this?

sreehari_vpillai
Active Contributor
0 Likes

I haven't tried this thing later. Are you facing any issues ?

prashil
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Sreehari,

If the problem is not able to resolve css and js I can help if you can provide how you defined the js/css and what is the error that you are facing.

Thanks

Prashil

sreehari_vpillai
Active Contributor
0 Likes

Hi Prashil,

Upon building the React project , it links all the css & js files to the below format... When I deploy this to apache , it works. My doubt is, how this to SAP.