wip
This commit is contained in:
@@ -10,7 +10,7 @@ class GitPullController extends Controller
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$result = Process::path(base_path())->run('bash git_pull.sh');
|
$result = Process::path(base_path())->run('sudo su; bash git_pull.sh');
|
||||||
|
|
||||||
|
|
||||||
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
sudo su
|
|
||||||
cd /var/www/online.tbbank.gov.tm
|
cd /var/www/online.tbbank.gov.tm
|
||||||
git pull
|
git pull
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user