Upgrade your version of pocketbase in local server and live on fly.io app #2615
-
Hi all, I apologize if this is a dumb question and I haven't done enough digging to find the answer... But, how do you upgrade your version of pocketbase, both on the local development server, and on my live fly.io server? I found one other discussion post on this, but it didn't make sense for me. Is there a command that can be ran to upgrade everything without losing data? Thank you in advance. John |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you use the prebuilt executable and followed the guide from #537, you can change the version from the Locally, if you are not using Docker, you can download the latest version and replace your current binary. If you are using PocketBase as framework, then to update your PocketBase version you can update your go.mod file, like any other Go package. |
Beta Was this translation helpful? Give feedback.
If you use the prebuilt executable and followed the guide from #537, you can change the version from the
PB_VERSION
arg in the Dockerfile (OR by updating it in the[[build.args]]
section in your fly.toml config) and then redeploy.Locally, if you are not using Docker, you can download the latest version and replace your current binary.
With v0.16.0 there is a helper
./pocketbase update
command that will download the latest executable, backup yourpb_data
, and replace your current executable with the previously downloaded one (the command currently doesn't work on Windows, but a fix has been applied already inmaster
and will be available with the next v0.16.4 release this week).If you ar…