Upgrade an Application
To upgrade your Spin application, there are just a few steps to take. This doesn’t require so much stress.
Upgrade Your Application
To upgrade a Spin application running in the Fermyon Cloud, you first have to change the version of your application.
- Open the
spin.tomlfile. In the file, you’ll find this line of code for the version:
version = "0.1.0"
In this case, we’re changing the version from
version = "0.1.1"
Spin application are packaged using Bindle. Bindle ensures immutability, meaning you cannot overwrite a Bindle (name+version), once it has been uploaded to a Bindle server. /n/n
spin deploy will fail if you try to redeploy a version of an application, which already exists in the Fermyon Cloud.
You can now deploy the upgraded version of your application by running this command:
$ spin deploy
That’s how to upgrade a Spin Application, just as simple as that!