【发布时间】:2015-02-20 21:19:16
【问题描述】:
我有一个在 Heroku 上运行的 Cakephp 应用程序,但无法加载插件。这一切都可以在我的本地开发机器上运行,但是当我推送到 Heroku Cake 时找不到我定义的插件。错误消息表明它正在“/app/app/Plugin”而不是“/app/Plugin”中寻找插件。如何在不破坏本地路径的情况下更正 Heroku 上的路径?
错误:找不到 ElasticSearchIndex.ElasticSearchIndexableBehavior。
错误:在以下文件中创建类 ElasticSearchIndexableBehavior:/app/app/Plugin/ElasticSearchIndex/Model/Behavior/ElasticSearchIndexableBehavior.php
堆栈跟踪:
【问题讨论】:
-
尝试将所有第三方库放在外部供应商目录中
-
有什么方法可以模拟本地主机中的 Heroku 路径?一些配置什么的?