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