Added back .env variables #787
This commit is contained in:
parent
9d3f7575d6
commit
7a929a51bb
1 changed files with 17 additions and 14 deletions
|
|
@ -83,20 +83,23 @@ class AppController extends BaseController
|
|||
return Redirect::to('/');
|
||||
}
|
||||
|
||||
$_ENV['APP_ENV']='production';
|
||||
$_ENV['APP_DEBUG']=$app['debug'];
|
||||
$_ENV['APP_URL']=$app['url'];
|
||||
$_ENV['APP_KEY']=$app['key'];
|
||||
$_ENV['DB_TYPE']=$dbType;
|
||||
$_ENV['DB_HOST']=$database['type']['host'];
|
||||
$_ENV['DB_DATABASE']=$database['type']['database'];
|
||||
$_ENV['DB_USERNAME']=$database['type']['username'];
|
||||
$_ENV['DB_PASSWORD']=$database['type']['password'];
|
||||
$_ENV['MAIL_DRIVER']=$mail['driver'];
|
||||
$_ENV['MAIL_PORT']=$mail['port'];
|
||||
$_ENV['MAIL_ENCRYPTION']=$mail['encryption'];
|
||||
$_ENV['MAIL_HOST']=$mail['host'];
|
||||
$_ENV['MAIL_USERNAME']=$mail['username'];;
|
||||
$_ENV['APP_ENV'] = 'production';
|
||||
$_ENV['APP_DEBUG'] = $app['debug'];
|
||||
$_ENV['APP_URL'] = $app['url'];
|
||||
$_ENV['APP_KEY'] = $app['key'];
|
||||
$_ENV['DB_TYPE'] = $dbType;
|
||||
$_ENV['DB_HOST'] = $database['type']['host'];
|
||||
$_ENV['DB_DATABASE'] = $database['type']['database'];
|
||||
$_ENV['DB_USERNAME'] = $database['type']['username'];
|
||||
$_ENV['DB_PASSWORD'] = $database['type']['password'];
|
||||
$_ENV['MAIL_DRIVER'] = $mail['driver'];
|
||||
$_ENV['MAIL_PORT'] = $mail['port'];
|
||||
$_ENV['MAIL_ENCRYPTION'] = $mail['encryption'];
|
||||
$_ENV['MAIL_HOST'] = $mail['host'];
|
||||
$_ENV['MAIL_USERNAME'] = $mail['username'];
|
||||
$_ENV['MAIL_FROM_NAME'] = $mail['from']['name'];
|
||||
$_ENV['MAIL_PASSWORD'] = $mail['password'];
|
||||
$_ENV['PHANTOMJS_CLOUD_KEY'] = 'a-demo-key-with-low-quota-per-ip-address';
|
||||
|
||||
$config = '';
|
||||
foreach ($_ENV as $key => $val) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue