Skip to content

Commit

Permalink
Allow fluence run to work without deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsartem authored Aug 9, 2022
1 parent cf3721d commit 603de7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,16 @@ export default class Run extends Command {
];

const appJsonServicePath = await ensureFluenceTmpAppServiceJsonPath();
const jsonServicePaths = flags[JSON_SERVICE];

if (appConfig !== null) {
await fsPromises.writeFile(
appJsonServicePath,
getAppJson(appConfig.services),
FS_OPTIONS
);

jsonServicePaths.push(appJsonServicePath);
}

let result: string;
Expand All @@ -141,10 +144,7 @@ export default class Run extends Command {
input: aqua,
timeout: flags.timeout,
import: imports,
"json-service": [
appJsonServicePath,
...(flags[JSON_SERVICE] ?? []),
],
"json-service": jsonServicePaths,
...data,
},
},
Expand Down

0 comments on commit 603de7d

Please sign in to comment.