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: Is there any thoughts on how to automate site LAR exports and imports
I know has the remote pub stuff for each individual site but that still has to be manually performed from within the portal itself. I could almost live without the automated exports but the imports would be great to have for continuous build, test and deploy operations.
I believe if you drop the lar in the deploy folder it will get picked up.
Maybe I need to clarify this a little. I'm talking about a site LAR exported from an existing portal. I've always thought that they need to be manually imported new site.
Yeah, I never try to rely on these, and I think you're right about the site import.
I've always found the lar import to be pretty "fragile" in that at least for me everything has to be practically perfect to get one to load.
Clients who ask me about using lar export/import for "promotion" I always counsel against relying on that because the differences between the environments can pose problems.
Heck, I even wrote a whole blog about the lars: https://community.liferay.com/blogs/-/blogs/content-creation-is-not-a-development-activity-
LF7 seems to be better then previous versions at importing LARs. Yes I agree LF6+ was very sketchy and often failed to perform an import correctly. I'm not seeing that in LF7 at all. Imports seem to work reliably.
Site initializers are the newer option, meant to replace the RI, but they have yet to be officially documented: https://issues.liferay.com/browse/LPS-83770
This ticket has value in that it points to three sample themes which use the site initializer.
In a recent project Resource Importer was overkill and I opted to instead use the Upgrade Process + ExportImportLocalService API. I wouldn't really recommend this way (dependencies can break this left and right) but it never hurts to have more options.
It says its for 6.2+ but I'm wondering if it would actually work for 7.0.
Powered by Liferay™