Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): merge T3-home service.env into the background launcher #12633

Closedcestercian(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/12633/headopened View on GitHub

Showing 5 changed files with 139 additions and 1 deletion (loading 3).

x
0 of 5 viewed, 5 left
2 additions and 0 deletionsapps/server/src/cloud/serviceProtocol.tsModified
View file
@@ -14,6 +14,8 @@
it when it starts (whoever restarted the service), so while it exists the
service is known to be behind its unit and status reports it that way. */
export const SERVICE_RESTART_PENDING_FILE = ".restart-pending";
+/** Optional KEY=VALUE file under T3 home. The service launcher merges it at start. */
+export const SERVICE_ENV_FILE = "service.env";
​
export interface PendingServiceUpdate {
readonly id: string;
137 additions and 1 deletionapps/server/src/serviceLauncher.test.tsModified
View file
@@ -4,11 +4,19 @@
import * as FileSystem from "effect/FileSystem";
import * as Path from "effect/Path";
​
-import { Launcher, readServiceState, writeServiceState } from "./serviceLauncher.ts";
+import {
+ applyServiceEnvFile,
+ Launcher,
+ parseServiceEnvFile,
+ readServiceEnvFile,
+ readServiceState,
+ writeServiceState,
+} from "./serviceLauncher.ts";
import {
compareExactServiceVersions,
decodeServiceState,
isExactServiceVersion,