Heroku wordpress: mysql扩展更新后丢失


Heroku wordpress : mysql extension missing after update

我在heroku上有一个php应用程序,它运行在wordpress上,几个月前我在heroku上部署了它,它运行良好。后来,我在我的本地主机上更新了应用程序,并为wordpress添加了一些插件并再次部署,现在它在我的网站上显示了一个错误,(你的PHP安装似乎缺少wordpress所需的MySQL扩展)。如果我将网站恢复到以前的提交,那么它又工作得很好。我使用的插件mysql是cleardb点燃。除此之外,我还安装了sendgrid。我有一个在线应用程序的本地副本,我使用一些git命令复制了它。为了再次将其部署到服务器,我使用了以下命令

>heroku login
 (go to local project dir , copy the new plugin in the plugins dir)
>git add .
>git commit -m " new plugin added"
>git push heroku master 

之后显示错误。这是应用程序的链接,http://hearsid.herokuapp.com/。除了上面的方法,我还尝试了heroku restart, heroku restart - myapp -name和heroku, heroku maintenance:off和on。

按照文档(https://devcenter.heroku.com/articles/php-support#extensions)启用可选扩展,如ext/mysql,或更好的,升级你的WordPress到3.9,最终有MySQLi支持。