This commit is contained in:
Duidev Software
2026-01-02 09:05:59 +07:00
parent e7c6d50141
commit 8be6231df6
10 changed files with 1285 additions and 1047 deletions
@@ -132,14 +132,10 @@ class JsonTransferController extends Controller
if (session('previlage') !== 'developer') {
abort(403, 'Akses ditolak. Anda tidak memiliki izin untuk menjalankan git pull.');
}
$gitPath = '/var/www/html/lis/';
// Jalankan git pull
$gitPath = base_path();
$output = shell_exec("cd {$gitPath} && git pull 2>&1");
// Simpan log siapa yang menjalankan (opsional)
if (auth()->check()) {
Log::info('Git pull executed by user: ' . auth()->user()->email);
Log::info('Git pull executed by user: ' . auth()->user()->email.' at '.now());
}
return back()->with('git_output', $output);