re: Deploy a Laravel 5 app to Heroku VIEW POST


My deployment seems to work finde, until php artisan is running some script which is trying to connect to the database (which doesn't exist yet, because I haven't run migrations yet). Any idea what that happens?


  • Installing graham-campbell/manager (v4.0.0): Downloading (100%)
  • Installing vinkla/hashids (4.0.0): Downloading (100%) Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover

In Connection.php line 664:

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from questions)



you need to have a production database connected to heroku

code of conduct - report abuse