• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multiframework
    • Security
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Languages
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • 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
  • Login
  • Request a demo
  • Free Trial
Meet Upsun. The new, self-service, fully managed PaaS, powered by Platform.sh.Try it now
Blog
Thumbnail

Fully customizable build flavors

drupalphp
11 November, 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

DrupalCamp Florida 2024: sharing takeaways from the experts

DrupalCamp Florida 2024: sharing takeaways from the experts

Company
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
  •  
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺