enh: define mothership port as 8091 for fewer conflicts with vscode

This commit is contained in:
Ben Allfree 2023-10-11 11:45:44 -07:00
parent 642461fc1a
commit 3ada3f86e3
2 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,8 @@ export const DAEMON_IPCIDR_LIST = env('DAEMON_IPCIDR_LIST', '')
.filter((v) => !!v)
export const DAEMON_PORT = envi('DAEMON_PORT', 3000)
export const MOTHERSHIP_PORT = envi('MOTHERSHIP_PORT', 8091)
export const DAEMON_PB_PORT_BASE = envi('DAEMON_PB_PORT_BASE', 8090)
export const DAEMON_PB_IDLE_TTL = envi('DAEMON_PB_IDLE_TTL', 5000)
export const DAEMON_PB_MIGRATIONS_DIR = (() => {

View File

@ -1,8 +1,8 @@
import {
DAEMON_MAX_PORTS,
DAEMON_PB_PORT_BASE,
DAEMON_PB_SEMVER,
DEBUG,
MOTHERSHIP_PORT,
PH_BIN_CACHE,
PUBLIC_APP_DB,
TRACE,
@ -95,7 +95,7 @@ global.EventSource = require('eventsource')
version: DAEMON_PB_SEMVER,
name: PUBLIC_APP_DB,
slug: PUBLIC_APP_DB,
port: DAEMON_PB_PORT_BASE,
port: MOTHERSHIP_PORT,
onUnexpectedStop: () => {
error(`serve had an unexpected stop. Check it out`)
},
@ -106,6 +106,7 @@ global.EventSource = require('eventsource')
/**
* Launch services
*/
console.log('launching')
await portManager({ maxPorts: DAEMON_MAX_PORTS })
await clientService({ url, logger })
await ftpService({ logger })