Skip to content

fix: reprovision deprovisioned instances in deploy#11

Merged
stevensJourney merged 2 commits into
mainfrom
stop-deploy
Mar 2, 2026
Merged

fix: reprovision deprovisioned instances in deploy#11
stevensJourney merged 2 commits into
mainfrom
stop-deploy

Conversation

@stevensJourney
Copy link
Copy Markdown
Collaborator

@stevensJourney stevensJourney commented Mar 2, 2026

closes #10

Summary

We should reprovision deprovisioned instances, even if the sync config has not changed.

Overview

The powersync deploy command tries to validate sync config. The validation of sync config requires a running PowerSync instance.
If the instance has been deprovisioned, we should redeploy/reprovision it before validating the sync config.

The previous logic check only did a reprovision if the sync config had changed. This broke if the instance was deprovisioned, but the sync config had not changed. This would result in a failure for validating the sync config.

This updates the deploy command to reprovision, before validating, if the instance is deprovisioned.

@stevensJourney stevensJourney marked this pull request as ready for review March 2, 2026 12:39
@stevensJourney stevensJourney merged commit eb9a52a into main Mar 2, 2026
2 checks passed
@stevensJourney stevensJourney deleted the stop-deploy branch March 2, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Pulling a currently stopped instance and then deploying that instance causes an error

2 participants