Upgrade a Strapi App in Development and Production

Daniel Phiri
InstructorDaniel Phiri
Share this video with your friends

Social Share Links

Send Tweet
Published a year ago
Updated a year ago

When a new Strapi version is available, you'll see a notification in your admin panel. You can also check the Strapi GitHub releases page that is linked in the notification to see what's new in the latest version and take note of the latest version number.

Once we upgrade the Strapi dependencies and install again, you'll notice the notification is gone and when you check settings the version number has been updated. To update production, you push your changes to GitHub and run git push heroku HEAD:main.

Instructor: [0:00] When we open our Strapi application, we noticed that the current version we have is out of date and a new version is available. Click See more, where we directed to our releases page and see that a new version V4.10.5 is out. To upgrade to this version, we'll start by copying the version number and opening our terminal.

[0:20] In our terminal, we'll stop our application and open VS Code. In our Strapi app, we'll open our package.json. In our package.json file, we'll update the dependency number for these five dependencies. We'll start with that Strapi and change that to a 5, 5, 5 and save our work.

[0:39] We'll go back to our terminal and type yarn install. Once all upgraded dependencies have installed, we'll rebuild our admin with yarn build. When our build is completed, we'll start our server with yarn develop. When we refresh our Strapi application, we notice the banner is gone.

[0:59] In our settings, under Overview, we also have confirmation of our updated Strapi version matching the latest Strapi version that is out.

[1:09] You might want to upgrade your production version of your Strapi application too. To do that, we'll go back to our terminal. We'll stop our server and save our changes with git add. We'll make a commit, and we'll type git push heroku HEAD. Once the app has been deployed, we enter our credentials to log in.

[1:39] When we check our settings, our deployed production version is also on the latest Strapi version. That is how you upgrade your Strapi application.

egghead
egghead
~ 4 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today