mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
enh: define mothership port as 8091 for fewer conflicts with vscode
This commit is contained in:
parent
642461fc1a
commit
3ada3f86e3
@ -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 = (() => {
|
||||
|
@ -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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user