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.
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

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