News for hackers. Stuff that matters.
Re:How ReadMe Went from SaaS to On-Premises in Less Than One... by rymohr on Friday November 04, 2016 @06:54PM (#12876889)
Good advice, definitely want to keep everything in a single branch.

While building the enterprise version of Kumu [1], I found it much easier to maintain if I used the environment to toggle configuration flags rather than scattering if(enterprise) calls throughout the codebase:

    BILLING_ENABLED = APP_ENV !== 'enterprise'

    if (BILLING_ENABLED) {
       // do something
    }
[1]: https://kumu.io/

There are no comments on this comment yet.