@replayio/app-building 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -137,10 +137,6 @@ async function destroyMachine(app, token, machineId, volumeId) {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
async function listMachines(app, token) {
|
|
141
|
-
const res = await flyFetch(`/apps/${app}/machines`, token);
|
|
142
|
-
return await res.json();
|
|
143
|
-
}
|
|
144
140
|
async function listVolumes(app, token) {
|
|
145
141
|
const res = await flyFetch(`/apps/${app}/volumes`, token);
|
|
146
142
|
return await res.json();
|
|
@@ -340,13 +336,6 @@ async function startRemoteContainerImpl(config, repo) {
|
|
|
340
336
|
const machineName = `${prefix}-${uniqueId}`;
|
|
341
337
|
const extra = buildExtraEnv(config, machineName);
|
|
342
338
|
const containerEnv = buildContainerEnv(repo, config.infisical, extra);
|
|
343
|
-
const existing = await listMachines(config.flyApp, config.flyToken);
|
|
344
|
-
if (existing.length > 0) {
|
|
345
|
-
console.log(`${existing.length} existing machine(s) in ${config.flyApp}:`);
|
|
346
|
-
for (const m of existing) {
|
|
347
|
-
console.log(` ${m.id} (${m.name}) \u2014 ${m.state}`);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
339
|
console.log("Creating Fly machine (with volume)...");
|
|
351
340
|
let machineId = "";
|
|
352
341
|
let volumeId = "";
|