Foren

Code changes to move from DEV to TEST environment

Venkatagiri Vatlam, geändert vor 11 Jahren.

Code changes to move from DEV to TEST environment

New Member Beiträge: 9 Beitrittsdatum: 17.09.12 Neueste Beiträge
Hi team,

Could some one explain step-by-step process to move the code changes
from DEV environment to TEST environment.

Ideally, what is the best practice to move the code changes from one
environment to other environment.

I tried using LAR (Liferay Archive) for importing and exporting, but it did not work out.
I could able to get only the pages, but not the theme.

Immediate assistance would be greatly appreciated.

Regards,
Venkat Vatlam
Venkatagiri Vatlam, geändert vor 11 Jahren.

RE: Code changes to move from DEV to TEST environment

New Member Beiträge: 9 Beitrittsdatum: 17.09.12 Neueste Beiträge
Hi All,

Using Liferay's .lar (Liferay Archive) feature, I was able to move the code
from one environment to other environment.

The following steps are followed to achieve this.

1) Before deploying code to other machine (TEST environment)
Manually deploy correponding themes and portlets of the pages

2) Create .lar (Liferay Archive) from one machine (DEV environment) as follows:
From Dockbar :: Manage->Site Pages->Public Pages->Export
Save the file as .lar

3) Import the obtained .lar from step 2 as follows to other machine (TEST environment) :
From Dockbar :; Manage->Site Pages->Public Pages->Import and click on Import

Hope this information would be useful for the needy people.
Venkatagiri Vatlam, geändert vor 11 Jahren.

RE: Code changes to move from DEV to TEST environment using LAR

New Member Beiträge: 9 Beitrittsdatum: 17.09.12 Neueste Beiträge
Hi All,

I was making my hands dirty during the past one week to work on .lar feature of Liferay.

.lar file can be obtained by Export option form Dockbar->Manage->Site Pages->Public Pages->Export (beside Add Page icon)

While creating .lar file there are 3 sections namely:

1) Pages
2) Applications
3) Other

In the Other section there is a check box for Theme and Theme Settings.
I do not see any option to include respective portlets corresponding to each page.

Finally, on click of Export button I get the file as Public_Pages-201210230935.lar

When I import the .lar file, pages and layouts are getting loaded, BUT NOT
themes and portlets. Although, they are getting loaded if I manually deploy THEME and corresponding PORTLETS.

Please advise me how can I get everything i.e., pages, themes, layouts and corresponding portlets
in single shot using Export lar feature.

Please let me know if you need further clarifications on my query.

Regards,
Venkat Vatlam
John Sim, geändert vor 11 Jahren.

RE: Code changes to move from DEV to TEST environment using LAR

New Member Beitrag: 1 Beitrittsdatum: 13.11.12 Neueste Beiträge
Venkatagiri Vatlam:
Hi All,

I was making my hands dirty during the past one week to work on .lar feature of Liferay.

.lar file can be obtained by Export option form Dockbar->Manage->Site Pages->Public Pages->Export (beside Add Page icon)

While creating .lar file there are 3 sections namely:

1) Pages
2) Applications
3) Other

In the Other section there is a check box for Theme and Theme Settings.
I do not see any option to include respective portlets corresponding to each page.

Finally, on click of Export button I get the file as Public_Pages-201210230935.lar

When I import the .lar file, pages and layouts are getting loaded, BUT NOT
themes and portlets. Although, they are getting loaded if I manually deploy THEME and corresponding PORTLETS.

Please advise me how can I get everything i.e., pages, themes, layouts and corresponding portlets
in single shot using Export lar feature.

Please let me know if you need further clarifications on my query.

Regards,
Venkat Vatlam



I am also getting the same; I can deploy liferay war packaged themes across to new servers but if I package a Liferay archive file with the theme the theme does not deploy and I get the following within the output ::

"No Theme found for specified theme id Test_WAR_Testtheme. Returning default theme."
Venkatagiri Vatlam, geändert vor 11 Jahren.

RE: Code changes to move from DEV to TEST environment using LAR

New Member Beiträge: 9 Beitrittsdatum: 17.09.12 Neueste Beiträge
Hi John,

In Liferay there are two main sections in application development:

1) Code Development
2) Content Development

Code in the form of plugins like (Portlets, Layouts and Themes etc) should follow
DEV->TEST->PROD cycle. In this scenario, you just need to copy WAR files to the deploy directory on the target system.

.lar directly does not support deployment of portlets, themes etc.

You can also refer to this link:

https://www.liferay.com/community/forums/-/message_boards/message/10621466

Hope this information would be useful to you...