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.
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:
-
In the Liferay Cloud console, navigate to the desired project and click Add new environment.
-
Add new database secrets for the new environment. For a complete list of database secrets, see Core Database Settings and User Management Variables.
TipFor 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:
-
Add a new branch to your
git
repository. -
In the new branch, edit
LCP.json
to add settings required by the new environment.TipFor improved performance and security, ensure
LCP.json
uses the latest image versions. -
Update
gradle.properties
to be compatible with your Liferay DXP version. -
Copy the environment-specific folders for the new environment from the old branch to the new one.
Verifying the Environment
-
Log into the CLI tool.
-
Navigate to the
liferay/
folder. -
Run
./gradlew clean createDockerfile deploy
. -
Copy the new
LCP.json
file into the newly generatedbuild/docker/
subfolder. -
Navigate back to the root folder.
-
Run
lcp deploy
and choose the new environment.
For more information, see Updating Services in Liferay PaaS.