OctoberCMS 的命令行安装与配置

使用命令行终端安装

快速安装

在终端输入:

curl -s https://octobercms.com/api/installer | php

或者如果没有curl,可以在终端输入:

php -r "eval('?>'.file_get_contents('https://octobercms.com/api/installer'));"

使用Composer 安装

使用create-project ,安装在myoctober目录里。

composer create-project october/october myoctober

编辑config/cms.php,把disableCoreUpdates设置为true允许更新框架核心。

'disableCoreUpdates' => true,

使用composer执行更新:|

composer update

安装后的设置

运行october:install命令启动配置向导:

php artisan october:install

october更新:

php artisan october:update

数据库迁移:

php artisan october:up

注意:如果需要取消迁移可以执行php artisan october:down

改变后台登录密码

php artisan october:passwd username password

参考

https://octobercms.com/docs/console/comman...

https://github.com/octobercms/october

本作品采用《CC 协议》,转载必须注明作者和本文链接
Write the code.Change the world.
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!