File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ import { runtimeWithArgs } from '../utils/runtime.js';
1212class 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 {
You can’t perform that action at this time.
0 commit comments