<?php

require_once __DIR__ . '/RpcServer.php';

$env = 'docker : production';
preg_match("/^agrobr-app02\.*/", gethostname(), $matches);

if (count($matches) > 0) {
    $env = 'production';
}

$envioEcmPlugEssor = new Agro_RabbitMQ_EnvioFormularioEcmPlugEssor_RpcServer(
    'run',
    $env,
    'envio_formulario_ecm_plug_essor'
);

$envioEcmPlugEssor->execute();
