3.2 KiB
title, sidebarDepth
title | sidebarDepth |
---|---|
更新 | 3 |
如何更新 Castopod ?
安装 Castopod 后,你可能希望将实例更新到最新版本 版本以享受最新功能 ✨, 修复错误 🐛 和性能提升 ⚡。
Update instructions
-
⚠️ Before any update, we highly recommend you backup your Castopod files and database.
-
Go to the releases page and see if your instance is up to date with the latest Castopod version
-
Download the latest release package named
Castopod Package
, you may choose between thezip
ortar.gz
archives- ⚠️ Make sure you download the Castopod Package and NOT the Source Code
- Note that you can also download the latest package from castopod.org
-
On your server:
-
Remove all files except
.env
andpublic/media
-
Copy the new files from the downloaded package into your server
::: info Note
You may need to reset files permissions as during the install process. Check Security Concerns.
:::
-
-
Update your database schema from your
Castopod Admin
>About
page or by running:php spark castopod:database-update
-
Clear your cache from your
Castopod Admin
>Settings
>general
>Housekeeping
-
✨ Enjoy your fresh instance, you're all done!
::: info Note
Releases may come with additional update instructions (see releases page).
:::
Fully Automated updates
即将到来... 👀
常见问题(FAQ)
在哪里可以找到我的 Castopod 版本号?
Go to your Castopod admin panel, the version is displayed on the bottom left corner.
Alternatively, you can find the version in the app > Config > Constants.php
file.
我很长时间没有更新我的实例… 我该怎么办?
No problem! Just get the latest release as described above. Only, when going through the release instructions (4), perform them sequentially, from the oldest to the newest.
你可能想要备份你的实例,这取决于您多久没有更新过 Castopod 。
For example, if you're on v1.0.0-alpha.42
and would like to upgrade to
v1.0.0-beta.1
:
-
(强烈推荐) 备份你的文件和数据库。
-
下载最新版本,覆盖您的文件,同时保留
.env
文件和public/media
文件夹。 -
从
v1.0.0-alpha.43
开始,按顺序执行每个版本更新指令(从老版本到 最新版本), 然后是v1.0.0-alpha.44
,v1.0.0-alpha.45
,…,直到v1.0.0-beta.1
。 -
✨ 享受你的新实例, 你已经更新完毕!
我是否应该在更新前备份?
We advise you do, so you don't lose everything if anything goes wrong!
More generally, we advise you make regular backups of your Castopod files and database to prevent you from losing it all…