1👍
✅
I want to keep only the
release_image
stage
Assuming this is true for your web
process as well, update your build
section accordingly:
build:
docker:
web:
dockerfile: Dockerfile
target: release_image
config:
PROD: "True"
Now you only have one process type defined and it targets the build stage you want to use.
Since you can run your migrations from the web
container there’s no need to build a whole container just for your Heroku release
process. (And since your release
section uses the web
image the release
process defined in build
wouldn’t have been for anything used anyway.)
Source:stackexchange.com