Message Boards

Adding some code to Liferay which is already on AWS EC2

Dejan Obradovic, modified 3 Years ago.

Adding some code to Liferay which is already on AWS EC2

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Hello, I have to add Google Tag Manager to my Liferay project so I can use features of GTM. 

 

Documentation says that I have to add it into theme > portal_normal.ftl in head and on the start of body tag. 

 

How can I just deploy this file, I cannot find on my AWS EC2 this file. Is it somehow compiled or anything when it is deplyoed on AWS?

 

Any help would be nice. Thanks! :) 

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Adding some code to Liferay which is already on AWS EC2

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

You'll need to rebuild your theme with the updated file, then redeploy your theme. The files aren't unzipped on disk, and you can't just update them on the fly. You can hot-deploy the theme though, no restart required.

And you should update your theme anyway, to be sure that the next deployment, whenever you add another update, also has this update.

Dejan Obradovic, modified 3 Years ago.

RE: RE: Adding some code to Liferay which is already on AWS EC2

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Thank you for your response!

 

Any hint or link to documentation how can I do rebuild theme after updating file?

 

Best regards, Dejan