此包的最新版本(1.0.0)没有可用的许可信息。

闪电般的PHP框架。

1.0.0 2020-06-11 21:22 UTC

This package is auto-updated.

Last update: 2024-02-08 06:38:02 UTC


README

一款闪电般的PHP框架。

安装:在你的网站文件夹中,运行以下命令

创建一个git仓库。

git init

添加Lightning仓库

git submodule add git@github.com:macdabby/Lightning.git

运行主要安装脚本。

这将引导您通过所有安装选项,包括连接到数据库和创建管理员用户。在运行此脚本之前,您应该已经设置了一个带有用户名和密码的MySQL数据库。Lightning/install.sh

安装默认内容。

这是安装过程的一部分,但您可以在任何时候通过运行此脚本导入默认数据。Lightning/lightning database import-defaults

创建管理员用户。

这是安装过程的一部分,但您可以通过运行此脚本始终添加新的管理员用户。Lightning/lightning user create-admin

构建CSS和JS文件

cd Source/Resources gulp

Nginx配置

请确保设置自己的域名、根目录和php套接字。server { server_name fqdn.com; root /var/www/lightning_site;

index index.php;

# Add any static file paths here
location ~ /(css/|fonts/|images/|js/|flash/|favicon\.(png|ico)) {
    try_files $uri /404.html;
}

location /admin {
    client_max_body_size 512M;
    include        fastcgi_params;
    fastcgi_param  QUERY_STRING     request=$uri&$query_string;
    fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
    fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
}

location / {
    include        fastcgi_params;
    fastcgi_param  QUERY_STRING     request=$uri&$query_string;
    fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
    fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
}

}