ajustes da api para o container

This commit is contained in:
Reginaldo
2023-08-04 17:08:58 -03:00
parent 5c499a8365
commit ffa32e58ee
2 changed files with 3 additions and 6 deletions

View File

@@ -20,7 +20,6 @@
define('STR_BD_IRACEMAPOLIS','firebird:dbname='.SERVIDOR_HOMO.'/'.PORTA_HOMO.':'.BANCO_IRACEMAPOLIS.';charset=UTF-8');
//mariaDB
define('DB_CONTROLE',"mysql:dbname=controledb;host=localhost;charset=utf8");
define('DB_CONTROLE',"mysql:dbname=controledb;host=192.168.176.2/3312;charset=utf8");
define('USER','root');
define('PASS','');
//será mudada depois o banco para a cidade desejada dinâmicamente
define('PASS','las1594@@');

View File

@@ -3,7 +3,6 @@
function load(string $controller, string $action){
try{
$controllerNameSpace = "app\\controllers\\{$controller}";
if(!class_exists($controllerNameSpace)){
throw new Exception("Controller {$controller} não existe");
@@ -48,8 +47,7 @@ $router= [
];
//rodar local host
//php -S localhost:8000
//php -S 192.168.18.2:8000
//depois chamar localhost:8000
//http://192.168.18.2:8000/login?NO_USERNAME=AMENEZES
//http://192.168.18.2:8000/logincontrole?NO_USERNAME=AMENEZES&CIDADE=IRACEMAPOLIS