Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/240.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在heroku服务器上运行laravel迁移_Php_Laravel_Heroku_Laravel 5_Heroku Postgres - Fatal编程技术网

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
,然后运行命令