Logs Added
This commit is contained in:
parent
803075f303
commit
4c23b777ea
|
|
@ -3,12 +3,12 @@
|
|||
ini_set('max_execution_time', 300);
|
||||
|
||||
// array to pass back data
|
||||
$data = array();
|
||||
$data = [];
|
||||
|
||||
// run command on terminal
|
||||
$command = 'cd ../.. && php artisan migrate --force';
|
||||
$last_line = exec($command, $data['migrate'], $data['results']);
|
||||
// run command on terminal and asumming that this is as fresh installation
|
||||
$command = 'cd ../.. && php artisan config:cache && php artisan migrate:fresh --force';
|
||||
$data['last_line'] = exec($command, $data['migrate'], $data['results']);
|
||||
|
||||
// return a response
|
||||
//return all our data to an AJAX call
|
||||
// return all our data to an AJAX call
|
||||
echo json_encode($data);
|
||||
|
|
|
|||
|
|
@ -65,26 +65,26 @@
|
|||
<label for="install-details">Installation log</label>
|
||||
<textarea rows="15" id="install-details" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="instructions" style="padding-top: 40px;" id="instructions">
|
||||
<div style="text-align: center;">
|
||||
<h4> Click the button below to run following :</h4>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="message">
|
||||
<span>Create the database tables </span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="message">
|
||||
<span> Populate the database tables </span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="message">
|
||||
<span> Publishing Vendor </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
<p class="composer" id="comp">Checking Composer Dependency</p>
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
<button class="btn btn-primary" id="migrate-seed">Start installation</button>
|
||||
<button class="btn btn-primary" id="continue">Continue</button>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="cursor: pointer; margin-top:10px">
|
||||
<span id="migration-back">back</span>
|
||||
</div>
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
})
|
||||
// using the done promise callback
|
||||
.done(function(data) {
|
||||
if(data) {
|
||||
if (data) {
|
||||
$('#composer-migrate').hide();
|
||||
|
||||
if (data['results'] == 0) {
|
||||
|
|
@ -205,8 +205,10 @@
|
|||
$('#loader').hide();
|
||||
$('#migrate-seed').hide();
|
||||
$('#migration-back').hide();
|
||||
|
||||
if (data['migrate']) {
|
||||
$('#install-details').append(data['migrate']);
|
||||
$('#install-log').show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue