Skip to content

Fix enterprise startup

Administrator requested to merge fix-enterprise-startup into master

Created by: efritz

https://github.com/sourcegraph/sourcegraph/pull/11424 had removed the precise-code-intel services (which are defined only in enterprise) from procfile, making it so that they never run in dev.

Fixing this also surfaced another set of issues:

  • Any change in enterprise/cmd restarts all services (fixed by adding a case to dev/handle-change.sh)
  • There's only one Procfile, which means if there's an enterprise-only service, you either need to always build and launch it in the OSS version, or you need to launch them separately in enterprise (fixed by having an enterprise-defined Procfile)
  • Removing the enterprise-only commands from all_oss_commands makes it so that the enterprise-commands are never built - this does not affect the enterprise version of frontend/repo-updater, which are already defined in the oss commands list (fixed by adding ENTERPRISE_ONLY_COMMANDS)
  • Enterprise watch dirs did not match OSS watch dirs (the former used absolute paths while the latter used relative paths) - fixed by making enterprise watch dirs relative to repo root

Merge request reports

Loading