Skip to content

Commit 8930121

Browse files
authored
fix: ignore errors on cleanUpLitestream() (#562)
1 parent 5f6af25 commit 8930121

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/wb/src/scripts/prismaScripts.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import { runtimeWithArgs } from '../utils/runtime.js';
1212
class PrismaScripts {
1313
cleanUpLitestream(project: Project): string {
1414
const dirPath = getDatabaseDirPath(project);
15-
// Cleanup existing artifacts to avoid issues with Litestream replication at first.
16-
return `rm -Rf ${dirPath}/prod.sqlite3-*; rm -Rf ${dirPath}/prod.sqlite3.*; rm -Rf ${dirPath}/.prod.sqlite3*`;
15+
// Cleanup existing artifacts to avoid issues with Litestream replication.
16+
// Note that don't merge multiple rm commands into one, because if one fails, the subsequent ones won't run.
17+
return `rm -Rf ${dirPath}/prod.sqlite3-*; rm -Rf ${dirPath}/prod.sqlite3.*; rm -Rf ${dirPath}/.prod.sqlite3* || true`;
1718
}
1819

1920
deploy(_: Project, additionalOptions = ''): string {

0 commit comments

Comments
 (0)