RE: Docker deploy / new version of (angular)portlet does not update

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 11/16/22 Recent Posts

Hi,
  i inherit an old proect (angular-portlet).
The old developer was running away. So i can't ask her questions..
This project is my first contact with liferay.
Now i had to have ro bring liferay and a portlet to run.
This is my working setup:

- docker image "liferay/portal:7.3.7-ga8"
mounted the "/opt/liferay/deploy" folder.

Liferay is running. My portlet is compiled to a ".jar" by gradle and if i copy this jar to the "deploy" folder. Deploy seem to work fine.
I created a widget-Page by usung the admin-gui, put nothing than this new widget on this page => it works fine.

Now the issue:

I tryed to change some Angular TypeScript/HTML code on one component inside the portlet => rebuild it => redeploay => no errors so far.
I even checkt the folder where liferay put the ar files => fine, it is the new one..
On reload the widget-Page I opened the network TAB (dev-tools of the browser) and watched the Loaded files (filterd by component-name).
I see the new Code in requests in the network TAB.
=> But the widget does not apply the changes. The changes are not visible.

I assume: I miss some kind of cache or version mechanism for portlets..
I would be happy for some hints..
Somehow I use Google wrong for an useful answer..

bg Peter

thumbnail
Jamie Sammons, modified 3 Years ago. New Member Posts: 13 Join Date: 4/13/20 Recent Posts

Hi Peter, 

Could you check if your Typescript file was transpiled to JS?

Rose