Heroku config
This commit is contained in:
parent
164b36edc0
commit
bbafdd18af
@ -2,6 +2,8 @@
|
||||
|
||||
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 [
|
||||
|
||||
/*
|
||||
@ -15,7 +17,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('DB_CONNECTION', 'mysql'),
|
||||
'default' => env('DB_CONNECTION', 'pgsql'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -65,12 +67,11 @@ return [
|
||||
|
||||
'pgsql' => [
|
||||
'driver' => 'pgsql',
|
||||
'url' => env('DATABASE_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '5432'),
|
||||
'database' => env('DB_DATABASE', 'forge'),
|
||||
'username' => env('DB_USERNAME', 'forge'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'host' => $DATABASE_URL['host'],
|
||||
'port' => $DATABASE_URL['port'],
|
||||
'database' => ltrim($DATABASE_URL['path'], '/'),
|
||||
'username' => $DATABASE_URL['user'],
|
||||
'password' => $DATABASE_URL['pass'],
|
||||
'charset' => 'utf8',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user