fix(server): make remote updates rollback-safe (#5181)
This commit is contained in:
1 parent
0ad91b6e7f
commit
d3037064e6
40 files changed
+2856
-2270
No files matched your search
@@ -223,7 +223,11 @@ const publishCmd = Command.make(
|
||||
const packageJsonPath = path.join(serverDir, "package.json");
|
||||
|
||||
// Assert build assets exist
|
||||
for (const relPath of ["dist/bin.mjs", "dist/client/index.html"]) {
|
||||
for (const relPath of [
|
||||
"dist/bin.mjs",
|
||||
"dist/service-launcher.mjs",
|
||||
"dist/client/index.html",
|
||||
]) {
|
||||
const abs = path.join(serverDir, relPath);
|
||||
if (!(yield* fs.exists(abs))) {
|
||||
return yield* new ServerCliBuildAssetMissingError({ assetPath: abs });
|
||||
|
||||
Reference in new issue
Block a user