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. – ceejayoz Jun 11 '19 at 12:49app.json
is doing what you told it to do, and your app works. What's the issue? – ceejayoz Jun 11 '19 at 13:52yet no Postgres is attached
,In my understanding, a review app with such configuration should be starting with Postgres DB
– eithed Jun 11 '19 at 13:53