0
是否有人使用Heroku Postgres插件成功配置了WordPress應用程序?我已經繼承了目前在Heroku上運行的WordPress應用程序,但未使用Heroku Postgres插件。如何將WordPress連接到Heroku的Postgres插件?
我試圖創建應用程序的臨時實例,並繼續收到「建立數據庫連接時出錯」。
我正在使用PG4WP插件並衍生出一個heroku-postgresql:dev實例。
我DATABASE_URL配置var爲以下格式:
postgres://xxxxxx:[email protected]:5432/xxxxxxxxx
我的WP-配置低於:
if (isset($_SERVER["DATABASE_URL"])) {
$db = parse_url($_SERVER["DATABASE_URL"]);
define("DB_NAME", trim($db["path"],"/"));
define("DB_USER", $db["user"]);
define("DB_PASSWORD", $db["pass"]);
define("DB_HOST", $db["host"]);
}
else {
die("Your heroku DATABASE_URL does not appear to be correctly specified.");
}
Hi @ pdoherty926你有任何教程如何在heroku或PostgreSQL上安裝wordpress。如果您有任何教程,請幫助我 –