#!/usr/bin/php7.4
<?php

require_once __DIR__ . '/RpcServer.php';

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

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

$srvGerarNovaVistoria = new Agro_RabbitMQ_VSD_RpcServer(
    'run',
    $env,
    'vsd'
);
$srvGerarNovaVistoria->execute();

