Skip to content

Commit

Permalink
chore: improve mutagen version changed error message (#6664)
Browse files Browse the repository at this point in the history
  • Loading branch information
twelvemo authored Nov 21, 2024
1 parent 198ab6a commit dd63fdd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/src/mutagen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,20 +325,28 @@ class _MutagenMonitor extends TypedEventEmitter<MonitorEvents> {

function logMutagenDaemonWarning(log: Log) {
const daemonStopCommand = `garden util mutagen daemon stop`
const deleteEnvironmentCommand = `garden delete environment`
const redeploySyncCommand = `garden deploy --sync`
const killProcessesCommand = `kill -9 $(pgrep mutagen)`

log.warn(
deline`
It looks like the sync daemon might have been changed to a different version.\n
Therefore the sync daemon needs to be restarted, and the affected deploys must be redeployed.\n
Therefore the sync daemon needs to be restarted, current mutagen processes stopped and the affected deploys must be redeployed.\n
Please, stop this command and follow the instructions below.\n
1. Stop the active sync daemon by running this command ${styles.accent(styles.bold("from the project root directory"))}:\n
${styles.command(daemonStopCommand)}\n
2. Redeploy the affected deploys by running this command (specify the action names if necessary):\n
2. Kill all mutagen processes on your machine by running this command\n
${styles.command(killProcessesCommand)}\n
3. Redeploy the affected deploys by running the following commands (specify the action names if necessary):\n
${styles.command(deleteEnvironmentCommand)}\n
${styles.command(redeploySyncCommand)}\n
Expand Down

0 comments on commit dd63fdd

Please sign in to comment.