How to deploy Polymer client application

I setup a jelastic cloud account and when I deploy, I notice only the generic Web client is deployed. I have a polymer client that I want deployed also.

  1. How do I make sure the Polymer client (used as public facing portal) is deployed to Jelastic Clound together with the Web client (for internal users)?
  2. Is it possible to have the Polymer client deployed to another hosting platform e.g. I have site5 and Godady accounts. How do I do that?
  1. Single war deployment (Jelastic) will be implemented in further releases (see the related YouTrack issue).
  2. You can deploy Polymer client separately in any web server which can serve static files (Apache, nginx, etc.). Just copy contents of modules/polymer-client/build/bundled folder to the web server’s document root. Make sure that api-url property of element points to the correct rest api location.

Thanks for the reply. It worked.

I thought this was working but I realise I’m still having a problem. It worked when I deployed the Polymer client on my Site5.com shared hosting and set api-url = “http://localhost:8080/app/rest/” that is the rest api on the CUBA instance running on my local machine. However when I tried to point it to the CUBA instance on Jelastic Cloud I’m having the problem that I cannot loggin with the Polymer client. I however can login to the Web client.

I’m thinking that it has to do with this api-url setting. I tried the following with no luck.:
api-url=“http://betwise.j.layershift.co.uk/app/rest
api-url=“http://betwise.j.layershift.co.uk:8080/app/rest

I also noticed via the Web client’s Admininistrator->Application properties that there are two properties there name cuba.restApiURL and cuba.webAppUrl
What should be the bext settings for these?

With trial and error I managed to get the right api-url to use which is “http://betwise.j.layershift.co.uk/rest/

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-8550