0
我不是說這個問題以前沒有問過,但我無法找到這個問題的答案。所以這裏是我的問題。希望有人能引導我走向正確的道路。如何在laura上啓用heroku上的postgres 5.1
Heroku上的.env文件看起來像這樣。
DB_HOST=postgres://somevalue.compute-1.amazonaws.com:5432
DB_DATABASE=somevalue
DB_USERNAME=secret username
DB_PASSWORD=secret password
當我運行php artisan migrate時,以下是錯誤。
SQLSTATE[08006] [7] could not translate host name "postgres://somevalue.compute-1.amazonaws.com:5432" to address: Name or service not known