Skip to content

Commit 6606a67

Browse files
committed
fix: tweak the deployment process
1 parent d908153 commit 6606a67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/deployment/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ show-config display the client connection parameters
329329
}
330330

331331
// Make sure the version file exists.
332-
await guardFile(`chain-version.txt`, makeFile => makeFile('0.0.0'));
332+
await guardFile(`chain-version.txt`, makeFile => makeFile('1'));
333333

334334
// Assign the chain name.
335335
const networkName = await trimReadFile('network.txt');
@@ -451,8 +451,8 @@ show-config display the client connection parameters
451451

452452
let execline = `npx http-server ./public`;
453453
let dwebHost;
454-
const cert = `${networkName}.crt`;
455-
const key = `${networkName}.key`;
454+
const cert = `dweb.crt`;
455+
const key = `dweb.key`;
456456
if ((await exists(cert)) && (await exists(key))) {
457457
execline += ` --port=443 --ssl`;
458458
execline += ` --cert=${shellEscape(cert)}`;
@@ -770,7 +770,7 @@ ${chalk.yellow.bold(`ag-setup-solo --netconfig='${dwebHost}/network-config'`)}
770770
await needDoRun(['terraform', 'init']);
771771
}
772772
await needDoRun(['terraform', 'apply', ...args.slice(1)]);
773-
await needDoRun(['rm', '-rf', PROVISION_DIR]);
773+
await needDoRun(['rm', '-f', `${PROVISION_DIR}/*.stamp`]);
774774
break;
775775
}
776776

0 commit comments

Comments
 (0)