Possible fix for #4371
This commit is contained in:
parent
475d5cccf4
commit
73796be56a
|
|
@ -101,7 +101,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 ../.. && php 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,12 +1,13 @@
|
|||
<?php
|
||||
|
||||
ini_set('max_execution_time', 300);
|
||||
$phpbin=PHP_BINDIR .'/php';
|
||||
|
||||
// array to pass back data
|
||||
$data = [];
|
||||
|
||||
// run command on terminal and asumming that this is as fresh installation
|
||||
$command = 'cd ../.. && php artisan config:cache && php 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,11 +2,12 @@
|
|||
|
||||
// array to pass back data
|
||||
$data = array();
|
||||
$phpbin=PHP_BINDIR .'/php';
|
||||
|
||||
// run command on terminal
|
||||
$key = 'cd ../.. && php artisan key:generate 2>&1';
|
||||
$seeder = 'cd ../.. && php artisan db:seed 2>&1';
|
||||
$publish = 'cd ../.. && php 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