dongshang6790 2019-01-24 00:22
浏览 97
已采纳

Heroku bash无法找到php命令

I wanted to publish Laravel App on Heroku today but Heroku bash couldn't find php command.

I update database details in config/database.php and next want to run migration but when i go to heroku run bash and php artisan migrate --app myappname I only see bash: php: command not found

I'm on Windows10.

  • 写回答

1条回答 默认 最新

  • doom910730 2019-01-24 16:18
    关注

    Problem solved. In composer.json i had ~7.1.3 version of PHP, after change to "php": "~7.3.0" and git push heroku master it start work

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?