cleanup
This commit is contained in:
parent
28c9222b98
commit
f46705cd84
6
cli.php
6
cli.php
@ -42,12 +42,8 @@ function getDatabaseConfig(): ConnectionData {
|
|||||||
$config = new Configuration();
|
$config = new Configuration();
|
||||||
$database = $config->getDatabase();
|
$database = $config->getDatabase();
|
||||||
if ($database !== null && $database->getProperty("isDocker", false) && !is_file("/.dockerenv")) {
|
if ($database !== null && $database->getProperty("isDocker", false) && !is_file("/.dockerenv")) {
|
||||||
$command = array_merge(["docker", "exec", "-it", "php", "php"], /*array_map(function ($arg) { return escapeshellarg($arg); }, */$argv);
|
$command = array_merge(["docker", "exec", "-it", "php", "php"], $argv);
|
||||||
var_dump(implode(" ", $command));
|
|
||||||
$proc = proc_open($command, [1 => STDOUT, 2 => STDERR], $pipes, "/application");
|
$proc = proc_open($command, [1 => STDOUT, 2 => STDERR], $pipes, "/application");
|
||||||
sleep(1);
|
|
||||||
/*var_dump(stream_get_contents($pipes[1]));
|
|
||||||
var_dump(stream_get_contents($pipes[2]));*/
|
|
||||||
exit(proc_close($proc));
|
exit(proc_close($proc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user