import { getLogger } from "@cocalc/project/logger" ; import initPidFile from "./pid-file" ; import initSecretToken from "./secret-token" ; import initAPIServer from "@cocalc/project/http-api/server" ; import initBrowserServer from "./browser/http-server" ; import initHubServer from "./hub/tcp-server" ; const winston = getLogger ( "init-project-server" ) ; export default async function init ( ) { winston . info ( "Write pid file to disk." ) ; await initPidFile ( ) ; await initSecretToken ( ) ; await initAPIServer ( ) ; await initBrowserServer ( ) ; await initHubServer ( ) ; }