Closed schneems closed 7 years ago
@schneems Yes. Want to send a PR?
Seems like there are a few problems here:
Buildpack developers should avoid generating side effects during the build. For example, it is not recommended to perform database migrations in the compile script.
I don't think it makes sense to deprecate this gem entirely until the release phase is out of beta.
@schneems I think @taylorzr is right. We shouldn't deprecate this until it's out of beta, and supports side effects like running DB migrations.
I added a note to the readme linking to Release Phase.
DB migrate works just fine. That's what I use it for.
There are reasons to not do this at scale though, for example if you accidentally lock a HUGE table there is no way to stop or cancel the release phase. That's why we don't officially recommend using it for DB migrate. In practice it's what most smaller and medium apps I've seen use it for.
Can we recommend people use release phase in the readme? https://devcenter.heroku.com/articles/release-phase