I have created angular + spring boot application using jhipster. Now during development i have used localhost:8080 for calling apis. But in production i need to update server_api_url to something http://mysever:8080. How to config such thing in jhipster?
5
-
Why do you need to set a full URL with protocol and domain name? If your backend serves your frontend bundle you can use only /api.– Gaël MarziouMar 10 at 21:28
-
@GaëlMarziou , Actually i deployed the bundle application in rdp server in which my application runs in port 9000 of rdp server. I need to use serverip:9000 in production testing.– I.vignesh DavidMar 11 at 5:48
-
What do you mean by RDP, remote desktop protocol? There must be something clever I don't understand. If same server/port serves both js bundle and api, you need full URL to load your frontend in browser but your frontend code just needs /api to access API.– Gaël MarziouMar 11 at 15:47
-
@i-vignesh-david Did you solve the problem?– Ranjith Raj DMay 3 at 5:01
-
Yes, in jhipster i added the url for prod in webpack.prod.js under the webpack folder– I.vignesh DavidMay 3 at 12:28
Add a comment
|