Below is my app.json:
{ "environments": { "review": { "addons": [ "heroku-postgresql:in-dyno" ], "scripts": { "postdeploy": "php artisan migrate --seed" } } } }
In my understanding, a review app with such configuration should be starting with Postgres DB and run my script afterwards; the app starts, yet no Postgres is attached and I don't see any errors in Build log nor Application Logs.
How should my app.json be structured to do what I want?
php artisan migrate --seed
needs a--force
parameter to bypass the "your app is in production, continue y/n?" prompt.app.json
is doing what you told it to do, and your app works. What's the issue?yet no Postgres is attached
,In my understanding, a review app with such configuration should be starting with Postgres DB