At Platform.sh, we believe your application should be deployed on your terms. That’s why we support custom build and deploy scripts on every project, to allow you to build your application in whatever way fits it best. We also support “build flavors” that automatically run common build tasks when appropriate, such as composer or npm installs.
But what if you didn’t want the default composer install command? Or maybe you don’t want to use npm but want to give new-kid-on-the-block Yarn a try? You’d still get a default build flavor and then have to repeat that work differently, which is just no good at all.
We agree. So we fixed that.
We now support a build flavor of
none in all environments. It works just like any other build flavor, but does, unsurprisingly, nothing. No
composer install , no
npm install , nothing. Like so:
build: flavor: none
You can then run whatever alternate build commands you want in your own build hook, be that a different composer command, yarn, or simply none at all.
The existing build modes (
composer for PHP, and just
default for Node.js) are still available, and the defaults haven’t changed. It’s just another option to further customize your application’s build if you want to do something a bit more exciting. See the Documentation for more details.