fix #4417
This commit is contained in:
parent
33ca72554d
commit
6262ee9f46
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
$phpbin = PHP_BINDIR . '/php';
|
||||
|
||||
// array to hold validation errors
|
||||
$errors = array();
|
||||
$errors = array();
|
||||
|
||||
// array to pass back data
|
||||
$data = array();
|
||||
$data = array();
|
||||
|
||||
// validate the variables
|
||||
// if any of these variables don't exist, add an error to our $errors array
|
||||
|
|
@ -101,7 +103,7 @@ $data = array();
|
|||
$data['support_error'] = 'Bagisto currently support MySQL only. Press OK to still continue or change you DB connection to MySQL';
|
||||
}
|
||||
|
||||
$storage_output = exec('cd ../.. && '.$phpbin.' artisan storage:link 2>&1');
|
||||
$storage_output = exec('cd ../.. && '. $phpbin .' artisan storage:link 2>&1');
|
||||
|
||||
// if there are no errors process our form, then return a message
|
||||
// show a message of success and provide a true success variable
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
ini_set('max_execution_time', 300);
|
||||
$phpbin=PHP_BINDIR .'/php';
|
||||
$phpbin = PHP_BINDIR . '/php';
|
||||
|
||||
// array to pass back data
|
||||
$data = [];
|
||||
|
||||
// run command on terminal and asumming that this is as fresh installation
|
||||
$command = 'cd ../.. && '.$phpbin.' artisan config:cache && '.$phpbin.' artisan migrate:fresh --force';
|
||||
$command = 'cd ../.. && '. $phpbin .' artisan config:cache && '. $phpbin.' artisan migrate:fresh --force';
|
||||
$data['last_line'] = exec($command, $data['migrate'], $data['results']);
|
||||
|
||||
// return a response
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
// array to pass back data
|
||||
$data = array();
|
||||
$phpbin=PHP_BINDIR .'/php';
|
||||
$phpbin = PHP_BINDIR . '/php';
|
||||
|
||||
// run command on terminal
|
||||
$key = 'cd ../.. && '.$phpbin.' artisan key:generate 2>&1';
|
||||
$seeder = 'cd ../.. && '.$phpbin.' artisan db:seed 2>&1';
|
||||
$publish = 'cd ../.. && '.$phpbin.' artisan vendor:publish --all --force 2>&1';
|
||||
$key = 'cd ../.. && '. $phpbin .' artisan key:generate 2>&1';
|
||||
$seeder = 'cd ../.. && '. $phpbin .' artisan db:seed 2>&1';
|
||||
$publish = 'cd ../.. && '. $phpbin .' artisan vendor:publish --all --force 2>&1';
|
||||
|
||||
$key_output = exec($key, $data['key'], $data['key_results']);
|
||||
$seeder_output = exec($seeder, $data['seeder'], $data['seeder_results']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue