checkEnvironment() {
        if (
            this.system.production &&
            Config.exists(path.join(this.dir, 'config.development.json')) &&
            !Config.exists(path.join(this.dir, 'config.production.json'))
        ) {
            this.ui.log('Found a development config but not a production config, running in development mode instead', 'yellow');
            this.system.setEnvironment(true, true);
        }
    }
/**
     * Checks the environment to see if a dev config exists
     * and not a production one. This is useful because the CLI
     * by default runs in production, but if you install a development
     * instance you might be confused by having to add a --development
     * flag each time you run a command. This works around that confusion
     *
     * @method checkEnvironment
     * @public
     */
Checks the environment to see if a dev config exists
and not a production one. This is useful because the CLI
by default runs in production, but if you install a development
instance you might be confused by having to add a --development
flag each time you run a command. This works around that confusion

@method checkEnvironment
@public
Checks the environment to see if a dev config exists and not a production one . This is useful because the CLI by default runs in production but if you install a development instance you might be confused by having to add a -- development flag each time you run a command . This works around that confusion @method checkEnvironment @public
checkEnvironment() {
        if (
            this.system.production &&
            Config.exists(path.join(this.dir, 'config.development.json')) &&
            !Config.exists(path.join(this.dir, 'config.production.json'))
        ) {
            this.ui.log('Found a development config but not a production config, running in development mode instead', 'yellow');
            this.system.setEnvironment(true, true);
        }
    }
checkEnvironment ( ) { if ( this . system . production && Config . exists ( path . join ( this . dir , 'config.development.json' ) ) && ! Config . exists ( path . join ( this . dir , 'config.production.json' ) ) ) { this . ui . log ( 'Found a development config but not a production config, running in development mode instead' , 'yellow' ) ; this . system . setEnvironment ( true , true ) ; } }
Checks the environment to see if a dev config exists
 and not a production one.
Checks the environment to see if a dev config exists and not a production one .