Build the exclusive files of each environment in the right config folder.
In the console
npx @janiscommerce/environment-builder [ENVIRONMENT]
[ENVIRONMENT]
name of the environment you want to build. If it's empty will be 'local'.- The files will be copy in
/root/config/
. - If there are files in
/root/config/
will be removed, and replace with the new ones.
The environments should be located in the folder /root/environments/[ENVIRONMENT]
. It mustn't be empty.
const EnvironmentBuilder = require('@janiscommerce/environment-builder');
Constructs the EnvironmentBuilder instance.
Builds the environment for the specified environment [String]
.
const EnvironmentBuilder = require('@janiscommerce/environment-builder');
const environmentBuilder = new EnvironmentBuilder();
(async () => {
await environmentBuilder.execute('local');
})();