Setting default environment back to 'production'

This commit is contained in:
Hillel Coren 2015-02-09 12:41:11 +02:00
parent ea8f875cae
commit 45ed61423c
3 changed files with 6 additions and 5 deletions

View File

@ -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,

View File

@ -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);
}

View File

@ -1,4 +1,4 @@
<?php
return 'development';
return 'production';