lightningsdk/core
Composer 安装命令:
composer require lightningsdk/core
包简介
Lightning Fast PHP Framework.
README 文档
README
A lightning fast PHP framework.
INSTALLATION: In your web folder, run the following:
Create a git repo.
git init
Add the Lightning repo
git submodule add git@github.com:macdabby/Lightning.git
Run the main install script.
This will walk you through all the installation options, including connecting to the database and creating an admin user. You should already have a MySQL database set up with a username and password before starting this script. Lightning/install.sh
Install default content.
This is part of the installation process, but at any time you can import default data by running this script. Lightning/lightning database import-defaults
Create an admin user.
This is part of the installation process, but you can always add a new admin user by running this script. Lightning/lightning user create-admin
Build the CSS and JS files
cd Source/Resources gulp
Nginx Configuration
Make sure to set your own domain, root directory, and php socket. 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;
}
}
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-06-11