forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
26 lines (21 loc) · 804 Bytes
/
main.go
File metadata and controls
26 lines (21 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
import (
"github.com/sourcegraph/sourcegraph/internal/sanitycheck"
"github.com/sourcegraph/sourcegraph/internal/service"
frontend_shared "github.com/sourcegraph/sourcegraph/cmd/frontend/shared"
gitserver_shared "github.com/sourcegraph/sourcegraph/cmd/gitserver/shared"
repoupdater_shared "github.com/sourcegraph/sourcegraph/cmd/repo-updater/shared"
searcher_shared "github.com/sourcegraph/sourcegraph/cmd/searcher/shared"
worker_shared "github.com/sourcegraph/sourcegraph/cmd/worker/shared"
)
func main() {
sanitycheck.Pass()
// Other services to run (in addition to `frontend`).
otherServices := []service.Service{
gitserver_shared.Service,
repoupdater_shared.Service,
searcher_shared.Service,
worker_shared.Service,
}
frontend_shared.FrontendMain(otherServices)
}