Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Adding some code to Liferay which is already on AWS EC2
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! :)
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.
Thank you for your response!
Any hint or link to documentation how can I do rebuild theme after updating file?
Best regards, Dejan
Powered by Liferay™