App Platform support for `release` process in Procfile or npm postinstall
I have come to DO App Platform from Heroku, and one teething problem i’ve had, is running processes after release, or during release for a Node.js app. Specifically running migrations .
In the past I’ve used
postinstall, which usually works, but more recently I’ve used the
release process type in a Procfile, which makes more sense.
DO doesn’t seem to support the
release process type, but I wonder if i’m using it wrongly for DO?
web: npm start release: npm run migrate
Also, I get unexpected behaviour using the
postinstall method, as DO doesn’t run
npm install when it has a cache of the
node_modules I presume from
I tried using a
appspec.yml file, with an added
build_command, and building via
doctl apps create-deployment, but that doesn’t appear to run the
postinstall command either.
build_command: npm install --production
Any ideas?! :)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×