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

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

    If you have multiple applications on a heroku server, you can do:

    heroku run bash -a application-name
    

    this will open a bash container for that specific application, and you can run any command inside this container. i.e

    php artisan migrate:refresh --seed
    

    Obviously you'll first need to make sure that you are already logged in to the heroku cli.

提交回复
热议问题