• Overview
    Frameworks
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Features
    • Observability
    • Auto-scaling
    Solutions
    • Marketing Teams
    • Retail
    • Higher Education
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Contact
  • Login
  • Free Trial
Blog
Thumbnail

Fully customizable build flavors

drupalphp
November 11, 2016
Larry Garfield
Larry Garfield
Director of Developer Experience

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 ( drupal  and  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.

Happy customizing!

Get the latest Platform.sh news and resources
Subscribe

Related Content

Cover image

PHP 8.1 lays new ground on Platform.sh

Company

AboutSecurity and complianceTrust CenterBoard and investorsCareersPressContact us
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceManage your cookie preferencesReport a security issue
© 2022 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺