Two PocketBase deploy failures fixed
Deploying a PocketBase instance from a directory with no pb_public,
pb_hooks or pb_migrations is a supported way to get a bare instance — but
pb cloud pb deploy was still attaching an archive to it, one describing zero
files. The platform’s unzip refuses an archive like that outright, so the
instance failed to come up. The CLI now sends no archive at all in that case,
and says plainly that it found nothing to deploy, rather than reporting a
successful deploy of an empty instance. The same applied to a redeploy whose
configured pb_public happened to be empty.
Separately, uploading an archive with neither pb_migrations nor pb_public
at its root — a built site zipped from the inside, most often — was reported as
“the files could not be written to the running instance … try the upload
again.” Nothing had been written and nothing was wrong with the instance: the
archive was the wrong shape, and retrying it could never work. That failure now
has its own message in both the dashboard and the CLI, naming the directories
it expected and confirming your instance is untouched and still running.