Heroku config

This commit is contained in:
Artur Nowakowski 2019-12-05 15:11:34 +01:00
parent 164b36edc0
commit bbafdd18af

View File

@ -2,6 +2,8 @@
use Illuminate\Support\Str; use Illuminate\Support\Str;
$DATABASE_URL=parse_url('postgres://tmaxhzoafsozao:500cedc9cfc5651ab612d1f8a46edfe125b6ea3851ea0c65872fbab1d7b70a5e@ec2-54-247-82-14.eu-west-1.compute.amazonaws.com:5432/d5o0v16lojfglb');
return [ return [
/* /*
@ -15,7 +17,7 @@ return [
| |
*/ */
'default' => env('DB_CONNECTION', 'mysql'), 'default' => env('DB_CONNECTION', 'pgsql'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -65,12 +67,11 @@ return [
'pgsql' => [ 'pgsql' => [
'driver' => 'pgsql', 'driver' => 'pgsql',
'url' => env('DATABASE_URL'), 'host' => $DATABASE_URL['host'],
'host' => env('DB_HOST', '127.0.0.1'), 'port' => $DATABASE_URL['port'],
'port' => env('DB_PORT', '5432'), 'database' => ltrim($DATABASE_URL['path'], '/'),
'database' => env('DB_DATABASE', 'forge'), 'username' => $DATABASE_URL['user'],
'username' => env('DB_USERNAME', 'forge'), 'password' => $DATABASE_URL['pass'],
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8', 'charset' => 'utf8',
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,