mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 15:34:30 -04:00
Setting default environment back to 'production'
This commit is contained in:
parent
ea8f875cae
commit
45ed61423c
@ -168,7 +168,7 @@ class AccountController extends \BaseController
|
||||
);
|
||||
$recommendedGatewayArray['Other Options'] = $otherItem;
|
||||
|
||||
$gateways = Gateway::remember(DEFAULT_QUERY_CACHE)->orderBy('name')->get();
|
||||
$gateways = Gateway::remember(DEFAULT_QUERY_CACHE)->where('payment_library_id', '=', 1)->orderBy('name')->get();
|
||||
|
||||
foreach ($gateways as $gateway) {
|
||||
$paymentLibrary = $gateway->paymentlibrary;
|
||||
@ -187,6 +187,7 @@ class AccountController extends \BaseController
|
||||
'gateways' => $gateways,
|
||||
'dropdownGateways' => Gateway::remember(DEFAULT_QUERY_CACHE)
|
||||
->where('recommended', '=', '0')
|
||||
->where('payment_library_id', '=', 1)
|
||||
->orderBy('name')
|
||||
->get(),
|
||||
'recommendedGateways' => $recommendedGatewayArray,
|
||||
|
@ -59,19 +59,19 @@ class AppController extends BaseController
|
||||
return Redirect::to('/setup')->withInput();
|
||||
}
|
||||
|
||||
$content = "<?php return 'development';";
|
||||
$content = "<?php return 'production';";
|
||||
$fp = fopen(base_path()."/bootstrap/environment.php", 'w');
|
||||
fwrite($fp, $content);
|
||||
fclose($fp);
|
||||
|
||||
$configDir = app_path().'/config/development';
|
||||
$configDir = app_path().'/config/production';
|
||||
if (!file_exists($configDir)) {
|
||||
mkdir($configDir);
|
||||
}
|
||||
|
||||
foreach (['app' => $app, 'database' => $database, 'mail' => $mail] as $key => $config) {
|
||||
$content = '<?php return '.var_export($config, true).';';
|
||||
$fp = fopen(app_path()."/config/development/{$key}.php", 'w');
|
||||
$fp = fopen(app_path()."/config/production/{$key}.php", 'w');
|
||||
fwrite($fp, $content);
|
||||
fclose($fp);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
|
||||
return 'development';
|
||||
return 'production';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user