Skip to content

KOMKZ/LShop

Repository files navigation

LShop

安装

安装项目

克隆项目:

git clone https://github.com/KOMKZ/LartikShop lshop
git checkout develope

安装依赖:

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer install

初始化项目

# 选择开发模式即可
./init

配置nginx:

server {
        listen 8011;
        client_max_body_size 0;
        index index.php index.html index.htm;
        root /path_to/lshop/kshopapi/web;

        location / {
                try_files $uri $uri/ =404;
        }
        location ~ ^(?!/(assets|index.php|favicon.ico|index-test.php))(.*) {
                rewrite ^(?!/index.php)(/.*) /index.php$2 last;
        }
        location ~ \.php {
                fastcgi_read_timeout 6000s;
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
        }
}

访问之前请确认以下配置是否正确:

./common/db/main-local.php
./common/amqp/main-local.php

安装数据库和初始数据

执行命令安装数据表:

./yii migrate/up

执行命令安装测试数据(可选):

./yii data/inst-test
./yii data/inst-user-test

执行命令安装必要数据

./yii rbac/install-rbac-data

检验安装结果

测试是否ok:

curl http://localhost:8011/

成功安装您将得到以下信息:

{"code":0,"data":"Welcome to KShop","message":""}

About

yii垂直电商

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages