A lightning fast PHP framework.
INSTALLATION: In your web folder, run the following:
git init
git submodule add git@github.com:macdabby/Lightning.git
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
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
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
cd Source/Resources gulp
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;
}
}