How to use php artisan migrate command of Laravel4 in Heroku?

前端 未结 6 1554
渐次进展
渐次进展 2021-02-19 05:22

I am suing Heroku dev plan for creating database using PostgreSQL. Database is created in Heroku. After running heroku pg:info command

$ heroku          


        
6条回答
  •  爱一瞬间的悲伤
    2021-02-19 05:29

    It took a little digging, but I was able to use it by running this command:

    heroku run /app/php/bin/php /app/www/artisan migrate
    

    So the lesson I learned was this: prefix all remote artisan commands with heroku run /app/php/bin/php /app/www/artisan

提交回复
热议问题