U9HUB 安装说明

2018-04-24  本文已影响0人  刚说

服务器要求

U9HUB开发 对系统有一些要求。当然,所有这些要求 UPUPW 服务器包都能满足,因此强烈推荐您使用 UPUPW 作为你的开发环境。
UPUPW 包含了 服务器基本运行环境,如:Nginx,PHP7,Mariadb等 。

软件安装

本说明,假设如下:
UPUPW 目录:指安装PUPW 的目录,F:\UPUPW
Ghub目录:指GHUB代码包所存放的目录,F:\project\ghub
Laravel目录:指ghub-laravel代码包所存放的目录,F:\project\ghub\ghub-laravel

安装GHUB包

进入Ghub目录,使用 git 窗口,或者cmd窗口,运行下列命令:

git clone https://github.com/gyonyou/ghub-laravel.git
git clone https://github.com/gyonyou/ghub-stage.git
git clone https://github.com/gyonyou/ghub-sans.git

进入 Laravel目录,使用cmd窗口,运行如下命令,

rename composer.json.dev composer.json

安装依赖包和Laravel

composer install
npm install
composer run-script gmf-install

调整配置

server {
    # 服务器的端口,默认为80,如果80被占用,可以修改为其它端口,如808
    listen       80;
    server_name  localhost;
    index  index.html index.htm default.php index.php;
    # GHUB项目路径,指向ghub-laravel包的public目录即可
    root   F:/project/ghub/ghub-laravel/public;
   ...
}
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=ghub
DB_USERNAME=root
DB_PASSWORD=root
...
#管理员配置
GMF_ADMIN_USER_ID=ec5aef60372b11e7b2612d7b7dc34435
GMF_ADMIN_USER_EMAIL=
GMF_ADMIN_USER_PWD=

安装或者数据

php artisan gmf:install --force

打包前端代码

npm run dev
上一篇 下一篇

猜你喜欢

热点阅读