[英]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:
尤其是:
If you've been using mysql for local deployment, you will need the ClearDB plugin added to heroku ; 如果您一直使用mysql进行本地部署,则需要将ClearDB插件添加到heroku ; instructions on how to optain the endpoint for the ClearDB database are here: Remote connect to clearDB heroku database
有关如何为ClearDB数据库获取端点的说明,请参见: 远程连接到clearDB heroku数据库
If you're planning to deploy wordpress using the postgresql database , you need to add the postgresql add-on, and configure wordpress to it. 如果您打算使用postgresql数据库部署wordpress ,则需要添加postgresql插件,并为其配置wordpress。 There's already instructions, and a full repo for wordpress-heroku that you may peruse
已经有说明,并且您可以仔细阅读wordpress-heroku的完整回购
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.