Php 在heroku服务器上运行laravel迁移
我有一个生产服务器,我已经将代码部署到服务器中,但是当我尝试使用以下命令迁移数据库时:Php 在heroku服务器上运行laravel迁移,php,laravel,heroku,laravel-5,heroku-postgres,Php,Laravel,Heroku,Laravel 5,Heroku Postgres,我有一个生产服务器,我已经将代码部署到服务器中,但是当我尝试使用以下命令迁移数据库时: heroku run php artisan 这就是我归还的东西 Running php artisan on [app-name] ... up, run.3899 bash: php: command not found 配置变量中的BUILDPACK\u URL设置为 https://github.com/heroku/heroku-buildpack-php 有什么帮助吗 机器上安装了PHP吗?@
heroku run php artisan
这就是我归还的东西
Running php artisan on [app-name] ... up, run.3899
bash: php: command not found
配置变量中的BUILDPACK\u URL
设置为
https://github.com/heroku/heroku-buildpack-php
有什么帮助吗 机器上安装了PHP吗?@Skytiger我以前在heroku中部署过相同的项目,PHP安装在服务器上,但这次我从heroku那里得到了这个错误。因此,php并没有像看起来的那样先运行:
heroku run bash
,当运行命令时,机器上是否安装了php?@Skytiger我以前在heroku中部署过相同的项目,并且php安装在服务器上,但这次我从heroku那里得到了这个错误。所以php并没有像看上去的那样先运行:heroku run bash
,然后运行命令