Deploy a Project in production
Usually, we first deploy a Project in a development environment to test it.
Then, it is time to deploy it in a production environment.
Deploy a Project in production
Usually, the development and production environments are not on the same database, server, instance, or cloud environment.
As you may have noticed, when deploying your project in a development environment, each replacement_config.json file contains a default environment called DEV:
{
    "environments": [
        {
            "name": "DEV",
            "projects": [
                {
                    "name": "<ProjectName>",
                    "variables": [
                        {
                            "name": "<ProjectName>#stage#database_name",
                            "value": "XXXXX_DEV",
                            "secretname": ""
                        },
                        ......................................
            ]
        }
    ],
    "secretprovider": {}
It is possible to duplicate it and create a second environment to define different placeholder values for a production environment.
Please duplicate the DEV environment into a PROD environment and update the placeholder values accordingly:
{
    "environments": [
        {
            "name": "DEV",
            "projects": [
                {
                  "name": "<ProjectName>",
                    "variables": [
                        {
                          "name": "<ProjectName>#stage#database_name",
                          "value": "XXXXX_DEV",
                            "secretname": ""
                        },
                        ......................................
            ]
        },
                {
            "name": "PROD",
            "projects": [
                {
                    "name": "<ProjectName>",
                    "variables": [
                        {
                            "name": "<ProjectName>#stage#database_name",
                            "value": "XXXXX_PROD",
                            "secretname": ""
                        },
                        ......................................
        }
    ],
    "secretprovider": {}
To deploy the production environment, use the -EnvironmentName "<name>" parameter when calling the replace_placeholders.ps1 script
--Example:
.\replace_placeholders.ps1 -EnvironmentName "PROD"
This will deploy the code using the placeholder values defined for the PROD environment.