@forge/cli
14.1.0-next.1-experimental-13c2f8d14.1.0-next.21-experimental-554d417
out/service/tunnel-service.js~
out/service/tunnel-service.jsModified+5−14
Index: package/out/service/tunnel-service.js
===================================================================
--- package/out/service/tunnel-service.js
+++ package/out/service/tunnel-service.js
@@ -43,27 +43,18 @@
this.configFilePortFindingService = configFilePortFindingService;
}
async run(tunnelOptions) {
const resourcePortMap = await this.configFilePortFindingService.findPorts();
- const startOptions = {
+ const tunnel = await this.startTunnelCommand.execute({
environmentKey: tunnelOptions.environment || process.env.ENVIRONMENT_KEY || 'default',
resourcePortMap,
host: 'localhost',
url: tunnelOptions.url,
port: tunnelOptions.localPort
- };
- const tunnel = tunnelOptions.localStorageCleanup
- ? await this.startTunnelCommand.execute(startOptions, tunnelOptions.containersDockerComposeFiles, tunnelOptions.localStorageCleanup)
- : await this.startTunnelCommand.execute(startOptions, tunnelOptions.containersDockerComposeFiles);
- try {
- const monitor = await this.tunnelInteractor.watchApp(tunnel, tunnelOptions);
- const manifestFileWatcher = this.tunnelInteractor.watchAndWarnOnManifestChanges(manifest_1.MANIFEST_FILE);
- await this.tunnelInteractor.handleUserExitEvent(tunnel.stopFunction, monitor, manifestFileWatcher);
- }
- catch (error) {
- await tunnel.stopFunction();
- throw error;
- }
+ }, tunnelOptions.containersDockerComposeFiles);
+ const monitor = await this.tunnelInteractor.watchApp(tunnel, tunnelOptions);
+ const manifestFileWatcher = this.tunnelInteractor.watchAndWarnOnManifestChanges(manifest_1.MANIFEST_FILE);
+ await this.tunnelInteractor.handleUserExitEvent(tunnel.stopFunction, monitor, manifestFileWatcher);
}
}
exports.InProcessTunnelService = InProcessTunnelService;
//# sourceMappingURL=tunnel-service.js.map
\ No newline at end of file