Я загружаю свой проект на хост, мне нужно получить последнее обновление формы gitlab с функцией в laravel.
Моя функция:
Код: Выделить всё
function execPrint($command = "git pull user:pass@gitlab.com/myProject.git") {
$result = array();
exec($command, $result);
print("
");
foreach ($result as $line) {
print($line . "\n");
}
print("");
}
Код: Выделить всё
ssh: Could not resolve hostname shayvard: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-laravel