# configuration/strings/server.strings.ts

> 22 lines of code and 9 definitions.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-server-strings-ts
Source text: https://banes-lab.com/source/build-scripts/configuration/strings/server.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/build-scripts/configuration/strings.md), after [configuration/strings/route.strings.ts](https://banes-lab.com/source/build-scripts/configuration/strings/route.strings.ts.md) and before [configuration/strings/site.strings.ts](https://banes-lab.com/source/build-scripts/configuration/strings/site.strings.ts.md).

## Definitions

- `commandFailed` (lexical_declaration, line 4, exported)
- `signalFailed` (lexical_declaration, line 8, exported)
- `probeFailed` (lexical_declaration, line 12, exported)
- `serverExitLine` (lexical_declaration, line 20, exported)
- `portHeldLine` (lexical_declaration, line 24, exported)
- `portReleasedLine` (lexical_declaration, line 28, exported)
- `DEV_SUMMARY` (lexical_declaration, line 1, exported)
- `SITE_SERVER_LABEL` (lexical_declaration, line 16, exported)
- `SOCIAL_SERVER_LABEL` (lexical_declaration, line 18, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md)

## Used by

- [core/adapters/server.adapter.ts](https://banes-lab.com/source/build-scripts/core/adapters/server.adapter.ts.md)
- [core/coordinators/server.coordinator.ts](https://banes-lab.com/source/build-scripts/core/coordinators/server.coordinator.ts.md)

## Linked from

- [core/adapters](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-adapters.md)
- [core/coordinators](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md)

## Source

```typescript
export const DEV_SUMMARY =
    "Start the site and the social share dev servers side by side, each on its declared port, with every output line prefixed by the server that wrote it. A port still held by an earlier server is freed first, and when one server exits or the command is interrupted, both stop.";

export const commandFailed = function commandFailed(file: string): string {
    return `server adapter: ${file} failed. Its error is attached as the cause.`;
};

export const signalFailed = function signalFailed(pid: number): string {
    return `server adapter: signaling process ${String(pid)} failed. Its error is attached as the cause.`;
};

export const probeFailed = function probeFailed(pid: number): string {
    return `server adapter: probing process ${String(pid)} failed. Its error is attached as the cause.`;
};

export const SITE_SERVER_LABEL = "site";

export const SOCIAL_SERVER_LABEL = "social";

export const serverExitLine = function serverExitLine(label: string, code: number | null): string {
    return `[dev] the ${label} server exited with code ${String(code)}; stopping the others\n`;
};

export const portHeldLine = function portHeldLine(port: number, pids: string): string {
    return `[free-port] port ${String(port)} still held after terminating pid ${pids} — start will fail\n`;
};

export const portReleasedLine = function portReleasedLine(port: number, pids: string): string {
    return `[free-port] released port ${String(port)} from pid ${pids}\n`;
};
```
