Skip to main content

17 docs tagged with "strapi"

View all tags

publicationState状态

https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#api-parameters

strapi-cli

查看 strapi 指令,命令行里输入:

strapi用户管理

strapi 的用户有两种,一种是可以登录 cms 后台的管理员用户(administrator-user),还有一种是终端用户(end-user),就是在面向用户的客户端中进行注册登录的用户。

使用env-file配置

本地配置尽量都走 env 文件,方便区分本地开发、测试、生产环境不同的配置环境。

数据库配置

默认是 sqlite,它与 mysql 的区别在于它是一个文件,而 mysql 是一个服务,服务就可以针对性的进行一些优化,比如大数据查询等。如果数据量比较大或者业务比较复杂,还是优先使用 mysql。

邮箱配置

配置邮箱来发送邮件,可以是自己在程序中自行发送,也可以是后台给终端用户发送的重置密码邮件。

配置备份与恢复

https://docs.strapi.io/developer-docs/latest/developer-resources/cli/CLI.html#strapi-configuration-dump