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

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

    Here is a complete example, and will solve "nothing to migrate issue" that comes in for Heroku,

    heroku run php artisan migrate --path=database/migrations --app application-name
    

    application-name is your Heroku APP name

提交回复
热议问题