Skip to content

Commit 394ed17

Browse files
committed
fix: throw on failed PM2 reload during rollback
1 parent 40757fd commit 394ed17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/commands/rollback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function cmdRollback(
4747
if (config.app === 'backend' && config.pm2?.name) {
4848
const nodeVersion = config.nodeVersion === 'lts' ? '24' : config.nodeVersion;
4949
const mise = `export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"`;
50-
await executor.exec(
50+
await executor.execOrThrow(
5151
`${mise}; mise exec node@${nodeVersion} -- pm2 reload ${config.pm2.name} --update-env`,
5252
);
5353
ui.success('PM2 reloaded');

0 commit comments

Comments
 (0)