Adding a New Environment

Liferay Cloud projects are provisioned with multiple environments to fit the needs of most users. If your application requires an additional environment, you can request one by opening a support ticket.

Important

Adding new environments to an existing project affects the pricing. Work with your sales representative to determine the solution that best fits your needs and constraints.

Setting Up a New Environment

Once the new environment is made available, follow these steps to set it up:

  1. In the Liferay Cloud console, navigate to the desired project and click Add new environment.

  2. Add new database secrets for the new environment. For a complete list of database secrets, see Core Database Settings and User Management Variables.

    Tip

    For enhanced security, generate new passwords for the new environment.

Then, if you wish to use a different Liferay version in the new environment, follow these steps:

  1. Add a new branch to your git repository.

  2. In the new branch, edit LCP.json to add settings required by the new environment.

    Tip

    For improved performance and security, ensure LCP.json uses the latest image versions.

  3. Update gradle.properties to be compatible with your Liferay DXP version.

  4. Copy the environment-specific folders for the new environment from the old branch to the new one.

Verifying the Environment

  1. Log into the CLI tool.

  2. Navigate to the liferay/ folder.

  3. Run ./gradlew clean createDockerfile deploy.

  4. Copy the new LCP.json file into the newly generated build/docker/ subfolder.

  5. Navigate back to the root folder.

  6. Run lcp deploy and choose the new environment.

Note

For more information, see Updating Services in Liferay PaaS.

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy