【发布时间】:2018-01-19 06:27:18
【问题描述】:
我的应用在 localhost 中运行,但是当我将它部署在 heroku 上时出现此错误
Warning: require(app/classes/sendgrid/sendgrid-php.php): failed to open stream: No such file or directory in /app/index.php on line 10 Fatal error: require(): Failed opening required 'app/classes/sendgrid/sendgrid-php.php' (include_path='.:/app/.heroku/php/lib/php') in /app/index.php on line 10
我的项目结构是:
mailer //project name
|
|-- footer.php
|
|-- header.php
|
|-- index.php
|
|-- inc
| |
| |-- style.css
|
|-- app
|
|-- classes
|
|-- app.php
|
|-- sendgrid
|
|-- sendgrid-php.php
|
|-- ...
(在我的 index.php 中,我可以毫无问题地包含 app.php)
问题不是来自 sendgrid,因为我也有 amazon s3 的问题...
【问题讨论】:
标签: php heroku amazon-s3 sendgrid