Pocketbase is a single file backend written in Go: Basics - Going to production - Docs - PocketBase
I am trying to deploy it on render.com, essentially, since it’s an embedded sqlite in the executable, we can just upload pocketbase as the executable (again sqlite is embedded in that file) then call
“pocketbase serve”, I put the pocketbase executable in render disk but 2 things are happening:
the disk is not being persisted on deploys (could it be because it failed? that’s scary, I would have lost data)
I have a feeling render disk is not available during deployment because it keeps complaining that pocketbase does not exist but i just went into the shell, wget the executable and ran it, and it worked.
My ideal state is to have in package.json’s scripts, something like:
"pocketbase-serve": "/var/lib/data/pocketbase serve --migrationsDir=path to my codebase folder"
which will by default run on port 8090