mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 16:34:35 -04:00
Minor fixes for self updater - more verbose messaging after self update
This commit is contained in:
parent
1af565abd3
commit
caf7ad5998
@ -66,10 +66,16 @@ class SelfUpdateController extends BaseController
|
|||||||
$repo = new GitRepository(base_path());
|
$repo = new GitRepository(base_path());
|
||||||
|
|
||||||
nlog('Are there changes to pull? '.$repo->hasChanges());
|
nlog('Are there changes to pull? '.$repo->hasChanges());
|
||||||
|
$output = '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$res = $repo->pull();
|
// $res = $repo->pull();
|
||||||
|
|
||||||
|
$output = $repo->execute('pull origin');
|
||||||
|
|
||||||
} catch (GitException $e) {
|
} catch (GitException $e) {
|
||||||
|
|
||||||
|
nlog($output);
|
||||||
nlog($e->getMessage());
|
nlog($e->getMessage());
|
||||||
return response()->json(['message'=>$e->getMessage()], 500);
|
return response()->json(['message'=>$e->getMessage()], 500);
|
||||||
}
|
}
|
||||||
@ -78,7 +84,7 @@ class SelfUpdateController extends BaseController
|
|||||||
Artisan::call('ninja:post-update');
|
Artisan::call('ninja:post-update');
|
||||||
});
|
});
|
||||||
|
|
||||||
return response()->json(['message' => ''], 200);
|
return response()->json(['message' => $output], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkVersion()
|
public function checkVersion()
|
||||||
|
@ -260,7 +260,7 @@ class HtmlEngine
|
|||||||
$data['$contact.email'] = ['value' => $this->contact->email, 'label' => ctrans('texts.email')];
|
$data['$contact.email'] = ['value' => $this->contact->email, 'label' => ctrans('texts.email')];
|
||||||
$data['$contact.phone'] = ['value' => $this->contact->phone, 'label' => ctrans('texts.phone')];
|
$data['$contact.phone'] = ['value' => $this->contact->phone, 'label' => ctrans('texts.phone')];
|
||||||
|
|
||||||
$data['$contact.name'] = ['value' => isset($this->contact) ? $this->contact->present()->name() : 'no contact name on record', 'label' => ctrans('texts.contact_name')];
|
$data['$contact.name'] = ['value' => isset($this->contact) ? $this->contact->present()->name() : $this->client->present()->name(), 'label' => ctrans('texts.contact_name')];
|
||||||
$data['$contact.first_name'] = ['value' => isset($this->contact) ? $this->contact->first_name : '', 'label' => ctrans('texts.first_name')];
|
$data['$contact.first_name'] = ['value' => isset($this->contact) ? $this->contact->first_name : '', 'label' => ctrans('texts.first_name')];
|
||||||
$data['$contact.last_name'] = ['value' => isset($this->contact) ? $this->contact->last_name : '', 'label' => ctrans('texts.last_name')];
|
$data['$contact.last_name'] = ['value' => isset($this->contact) ? $this->contact->last_name : '', 'label' => ctrans('texts.last_name')];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user