简体   繁体   English

Heroku上的Wordpress Duplicator安装程序

[英]Wordpress Duplicator Installer on Heroku

I've built out a wordpress website locally and now I'd like to deploy it from localhost to an actual web address hosted on Heroku. 我在本地建立了一个wordpress网站,现在我想将其从localhost部署到Heroku上托管的实际网址。

I've created a new sql database on my newly created Heroku site and am using the Wordpress Duplicator plugin to transfer everything over. 我已经在新创建的Heroku网站上创建了一个新的sql数据库,并且正在使用Wordpress Duplicator插件来传输所有内容。

I've pushed all my files onto heroku master, and I've installed the Duplicator installer.php and .zip files. 我已将所有文件推送到heroku master上,并安装了Duplicator installer.php和.zip文件。

However, when I actually try connecting to my Heroku data from the installer, it pauses for a while and gives the following error. 但是,当我实际上尝试从安装程序连接到我的Heroku数据时,它会暂停一会儿,并出现以下错误。

"An error occurred while testing the database connection! Contact your server admin to make sure the connection inputs are correct!" “测试数据库连接时发生错误!请与您的服务器管理员联系,以确保连接输入正确!”

Am I missing something in regard to connecting to Heroku databases externally? 在从外部连接到Heroku数据库时,我是否缺少某些东西? What's the best way to get wordpress up on Heroku? 在Heroku上提高wordpress的最佳方法是什么?

Note that the SQL connection string for your app deployed on heroku is very definitely not localhost. 请注意,部署在heroku上的应用程序的SQL连接字符串绝对不是本地主机。 In particular: 尤其是:

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM