Heroku doesn't recognize my Laravel app as PHP app, and does not do composer install

僤鯓⒐⒋嵵緔 提交于 2019-12-03 14:52:47

I believe I found it. Should better read the lines ("Node.js app detected"). Solved by firing this command :

heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php

and pushing again

Haha, just simply drop the package.json in your laravel project. And then Heroku will detect your app as a php project.

Be sure to include the trailing slash on public: public/. This was my issue - I am using Laravel and got a Image source not readable and NotReadableException in AbstractDecoder.php line 302: because it thought at AbstractDecoder->init('/app/public') in AbstractDriver.php line 64 was a file, not a folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!