Liferay

Developer’s Step-by-Step Guide For Staging Setup in Liferay DXP 7.2

Liferay development has gained fame as an integrated digital experience platform across the corporate world. Its Digital Experience Platform (DXP) has enabled MNCs, large companies, and even SMEs to offer personalized experiences to the customers throughout their journey. Liferay DXP has many user-friendly and enterprise-focused features and excellent functionality. One of its useful features is Staging.

The concept of staging is important for enterprise content management services. It enables Liferay developers to modify the business website behind the scenes and publish all the updates at once. Visitors or customers cannot see developers changing the web site before their eyes thanks to the Staging feature. Liferay facilitates developers to make changes to the website in the specific staging area.

Here we give a step-by-step guide for staging in Liferay DXP 7.2 from the perspective of a Liferay development company. Let’s understand the importance of the staging concept through a real-time use case.

In the CMS portal, we may need a setup where data on the production site should first be viewed on some local environment before uploading it upon the production server for the end-users. Such functionality in Liferay can be achieved using a staging concept.

Let’s discuss every step of the staging setup now.

1) To do a staging setup between two Liferay servers, first, check the connectivity between two servers.


For example, to check connectivity between servers with port numbers 8080 and 9090 from your system's terminal enter command curl https://127.0.0.1:9090 and this should return some Liferay HTML string content in your terminal as shown in the below image-
 

Document managemet system


2) In both servers portal-ext.properties keep the portals available, enable language as same. For example, if the portal supports only English and Spanish, then portal-ext.properties property should have the following property in both the servers. Also, Liferay’s use of a pre-shared key between staging and production environments helps secure the remote publication process. It also removes the need to send the publishing user’s password to the remote server for web service authentication.


Using a pre-shared key allows Liferay to create an authorization context (permission checker) from the provided email address, screen name, or user ID without the user’s password. Enter the same secret key in both the servers as shown in the below image.
 

Document managemet system


Note:
If you don’t use hexadecimal encoding, i.e. if you use the default setting tunneling.servlet.shared.secret.hex=false, the value of the tunneling.servlet.shared.secret property must be ASCII-compliant.
 

3) In both servers fix pack version, Liferay version should be the same and to check the fix pack version, Liferay version of both the servers by going to respective server patching-tool folder and entering command ./patching-tool.sh info 4) In both staging, publication servers there should be sync between jars, wars of both the servers so deploy all the jars, wars in both the servers. 5) Log in to the first server with the administrator role from which staging is to be done and go to particular site Publishing->Staging as shown in the below image- Document managemet system 6) Select Remote Live and enter the details of the second server on which cloning is to be done as shown in below images Document managemet system Document managemet system


Note: If you want to enable page versioning in staging server select the Enabled on public/private pages options and the respective assets for which you want to enable staging between two servers.
 

7) On a successful staging connection, you'll get the screen shown below with a success message. Document managemet system


8) To publish the whole content select on the ‘+’ icon in the above screen and select relevant assets that you want to export to the publication server and select publish to live option.

Document managemet system


Note: if you want to publish content on scheduled time, select the schedule option along with the respective time details. This is an amazing option that allows you to publish changes at a specific time.
 

9) On successful publication, you'll get a screen as shown in the below image. Document managemet system


10) Now, for example, in order to publish any single web content asset select publish to live option for particular web content asset as shown in the below image.

Document managemet system


11) In order to publish any new page, go to that page and select publish to live option then go to ‘Switch to Advanced Publication’ and publish the particular new page that you want to publish.

That’s it! The staging concept in the Liferay DXP 7.2 and other versions can be a game-changer in the page publication. However, it is advisable to consult a reliable Liferay development company to know more about this concept and other enterprise-friendly features of Liferay DXP.


Concluding Lines
Tridhya Tech is a reputed Liferay development services provider. We provide customized, robust, and cost-effective web solutions using the Liferay DXP version to our corporate clients. Apart from Liferay DXP upgrade and portal development services, we also offer consultancy, support, and maintenance services.

#CTA-1#

If you want to get a customized web solution for simplifying complex processes of your business Contact US
Liferay DXP

Liferay

Challenges and Costs of Implementing Liferay DXP in 2024

Implementing Liferay DXP in 2024 presents challenges like technical complexities, integration hurdles, and significant costs. Explore these aspects to ensure a smooth deployment.

Liferay DXP

Liferay

10 Ways How Liferay DXP Accelerates Business Innovation

Explore how Liferay DXP fosters business innovation through 10 strategic approaches. From enhancing customer experiences to streamlining operations, discover how this versatile platform can transform your business and give you a competitive advantage in the digital age.

Transform Your Business With Digital Enterprise Solutions

Contact us

Our Offices

INDIA AHMEDABAD, INDIA

401, One World West, Nr. Ambli T-Junction 200, S P Ring Road, Bopal, Ahmedabad, Gujarat 380058

UK
UK

Kemp House 160 City Road, London, United Kingdom EC1V 2NX

GERMANY GERMANY

Nürnberger Str. 46 90579 Langenzenn Deutschland

AUSTRALIA AUSTRALIA

Level 36 Riparian Plaza, 71 Eagle Street, Brisbane, QLD 4000

USA USA

4411 Suwanee Dam road, Bld. 300 Ste. 350 Suwanee GA, 30024

SOUTH AFRICA SOUTH AFRICA

Cube Work Space, 24 Hans Strijdom Avenue, Cape Town

UAE DUBAI, UAE

B 503 Sama Tower, Sheikh Zayed Road, United Arab Emirates

country-flag CANADA

34 Applegrove Ct. Brampton ON L6R 2Y8