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

前端 未结 6 1551
渐次进展
渐次进展 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:47

    I would recommend to run migration as a part of build process. As it should be. Take a look at https://github.com/lifekent/heroku-buildpack-laravel. Official build pack with easy yo use support for running artisan commands

提交回复
热议问题