我想尝试将Symfony 3应用程序部署到Heroku,但部署失败。
我已将环境SYMFONY_ENV变量设置为" prod",创建了一个包含以下内容的Procfile:
web: $(composer config bin-dir)/heroku-php-apache2 web/
最后我安装了nodejs和php buildpacks:
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/heroku/heroku-buildpack-php.git
在部署完成之前不久,我得到以下内容:
任何人都知道为什么bin / console cli工具突然无法访问?!
提前致谢。
答案 0 :(得分:1)
The problem was that my .gitignore file was not the right one for the Symfony application in version 3. The file "bin/console" was on the .gitignore so it was not checked out on the heroku dyno...