浏览代码

no message

kuaifan 5 年之前
父节点
当前提交
3fbc66e16e
共有 5 个文件被更改,包括 121 次插入121 次删除
  1. 15 15
      install/BT.md
  2. 33 33
      install/DOCKER.md
  3. 20 20
      install/SERVER.md
  4. 33 33
      install/en/DOCKER.md
  5. 20 20
      install/en/SERVER.md

+ 15 - 15
install/BT.md

@@ -105,13 +105,13 @@ location @laravels {
 - 进入服务器,依次运行一下命令:
 
 ```bash
-$ cd /www/wwwroot/wookteam.com
-$ composer install
-$ php artisan key:generate
-$ php artisan migrate --seed
+cd /www/wwwroot/wookteam.com
+composer install
+php artisan key:generate
+php artisan migrate --seed
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 ```
 
 > 如果提示`npm: command not found`请重启服务器或者运行`source ~/.bash_profile`后再试
@@ -121,9 +121,9 @@ $ npm run production
 - 进入服务器,依次运行一下命令:
 
 ```bash
-$ yum install -y supervisor
-$ systemctl enable supervisord
-$ systemctl start supervisord
+yum install -y supervisor
+systemctl enable supervisord
+systemctl start supervisord
 ```
 
 - 新建文件`/etc/supervisord.d/wookteam.ini`,内容如下:
@@ -144,7 +144,7 @@ stdout_logfile=/www/wwwroot/wookteam.com/%(program_name)s.log
 - 运行以下命令:
 
 ```bash
-$ systemctl restart supervisord
+systemctl restart supervisord
 ```
 
 到此安装完毕,希望你使用愉快!
@@ -162,11 +162,11 @@ $ systemctl restart supervisord
 - 进入服务器,切换至站点目录,然后依次运行以下命令:
 
 ```bash
-$ composer update
-$ php artisan migrate
+composer update
+php artisan migrate
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 
-$ systemctl restart supervisord
+systemctl restart supervisord
 ```

+ 33 - 33
install/DOCKER.md

@@ -14,29 +14,29 @@
 
 ```bash
 // 使用ssh
-$ git clone git@github.com:kuaifan/wookteam.git
+git clone git@github.com:kuaifan/wookteam.git
 // 或者你也可以使用https
-$ git clone https://github.com/kuaifan/wookteam.git
+git clone https://github.com/kuaifan/wookteam.git
 
 // 进入目录
-$ cd wookteam
+cd wookteam
 
 // 拷贝 .env
-$ cp .env.docker .env
+cp .env.docker .env
 ```
 
 #### 2、构建项目
 
 ```bash
-$ ./cmd build php
-$ ./cmd composer install
-$ ./cmd artisan key:generate
-$ ./cmd artisan migrate --seed
-$ ./cmd php bin/wookteam --port=8080 --ssl=4433
-$ ./cmd up -d
-$ ./cmd npm install
-$ ./cmd npm run prod
-$ ./cmd restart
+./cmd build php
+./cmd composer install
+./cmd artisan key:generate
+./cmd artisan migrate --seed
+./cmd php bin/wookteam --port=8080 --ssl=4433
+./cmd up -d
+./cmd npm install
+./cmd npm run prod
+./cmd restart
 ```
 
 到此安装完毕,项目地址为:**`http://IP:PORT`**(`PORT`为构建项目中的参数`8080`)。
@@ -44,20 +44,20 @@ $ ./cmd restart
 ### 更换端口
 
 ```bash
-$ ./cmd php bin/wookteam --port=8080 --ssl=4433
-$ ./cmd up -d
+./cmd php bin/wookteam --port=8080 --ssl=4433
+./cmd up -d
 ```
 
 ### 停止服务
 
 ```bash
-$ ./cmd stop
+./cmd stop
 ```
 
 > 一旦应用程序被设置,无论何时你想要启动服务器(如果它被停止)运行以下命令
 
 ```bash
-$ ./cmd start
+./cmd start
 ```
 
 ### 运行命令的快捷方式
@@ -65,14 +65,14 @@ $ ./cmd start
 > 你可以使用以下命令来执行
 
 ```bash
-$ ./cmd artisan "your command"          // 运行 artisan 命令
-$ ./cmd php "your command"              // 运行 php 命令
-$ ./cmd composer "your command"         // 运行 composer 命令
-$ ./cmd supervisorctl "your command"    // 运行 supervisorctl 命令
-$ ./cmd test "your command"             // 运行 phpunit 命令
-$ ./cmd npm "your command"              // 运行 npm 命令
-$ ./cmd yarn "your command"             // 运行 yarn 命令
-$ ./cmd mysql "your command"            // 运行 mysql 命令
+./cmd artisan "your command"          // 运行 artisan 命令
+./cmd php "your command"              // 运行 php 命令
+./cmd composer "your command"         // 运行 composer 命令
+./cmd supervisorctl "your command"    // 运行 supervisorctl 命令
+./cmd test "your command"             // 运行 phpunit 命令
+./cmd npm "your command"              // 运行 npm 命令
+./cmd yarn "your command"             // 运行 yarn 命令
+./cmd mysql "your command"            // 运行 mysql 命令
 ```
 
 ## 默认账号
@@ -87,14 +87,14 @@ $ ./cmd mysql "your command"            // 运行 mysql 命令
 - 进入目录,依次运行以下命令:
 
 ```bash
-$ git fetch --all
-$ git reset --hard origin/master
-$ git pull
-$ ./cmd composer update
-$ ./cmd artisan migrate
+git fetch --all
+git reset --hard origin/master
+git pull
+./cmd composer update
+./cmd artisan migrate
 
-$ ./cmd npm install
-$ ./cmd npm run prod
+./cmd npm install
+./cmd npm run prod
 
-$ ./cmd restart
+./cmd restart
 ```

+ 20 - 20
install/SERVER.md

@@ -14,15 +14,15 @@
 
 ```bash
 // 使用ssh
-$ git clone git@github.com:kuaifan/wookteam.git
+git clone git@github.com:kuaifan/wookteam.git
 // 或者你也可以使用https
-$ git clone https://github.com/kuaifan/wookteam.git
+git clone https://github.com/kuaifan/wookteam.git
 
 // 进入目录
-$ cd wookteam
+cd wookteam
 
 // 拷贝 .env
-$ cp .env.example .env
+cp .env.example .env
 ```
 
 #### 2、修改`.env`
@@ -44,15 +44,15 @@ LARAVELS_LISTEN_PORT=5200
 #### 3、设置项目
 
 ```bash
-$ git checkout master # 如果使用dev分支进行本地开发
-$ git pull origin master # 如果使用dev分支进行本地开发
+git checkout master # 如果使用dev分支进行本地开发
+git pull origin master # 如果使用dev分支进行本地开发
 
-$ composer install
-$ php artisan key:generate
-$ php artisan migrate --seed
+composer install
+php artisan key:generate
+php artisan migrate --seed
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 ```
 
 #### 4、运行 Laravels (WebSocket)
@@ -60,7 +60,7 @@ $ npm run production
 > 请确认您的环境以及安装[Swoole](https://www.swoole.com/)。
 
 ```bash
-$ php bin/laravels start
+php bin/laravels start
 ```
 
 > 建议通过[Supervisord](http://supervisord.org/)监管主进程,前提是不能加`-d`选项并且设置`swoole.daemonize`为`false`。
@@ -153,15 +153,15 @@ server {
 - 进入目录,依次运行以下命令:
 
 ```bash
-$ git fetch --all
-$ git reset --hard origin/master
-$ git pull
-$ composer update
-$ php artisan migrate
+git fetch --all
+git reset --hard origin/master
+git pull
+composer update
+php artisan migrate
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 
-$ php bin/laravels start # 如果使用Supervisord则重启Supervisord
+php bin/laravels start # 如果使用Supervisord则重启Supervisord
 ```
 

+ 33 - 33
install/en/DOCKER.md

@@ -14,29 +14,29 @@
 
 ```bash
 // using ssh
-$ git clone git@github.com:kuaifan/wookteam.git
+git clone git@github.com:kuaifan/wookteam.git
 // or you can use https
-$ git clone https://github.com/kuaifan/wookteam.git
+git clone https://github.com/kuaifan/wookteam.git
 
 // enter directory
-$ cd wookteam
+cd wookteam
 
 // copy .env
-$ cp .env.docker .env
+cp .env.docker .env
 ```
 
 #### 2. Build image & install
 
 ```bash
-$ ./cmd build php
-$ ./cmd composer install
-$ ./cmd artisan key:generate
-$ ./cmd artisan migrate --seed
-$ ./cmd php bin/wookteam --port=8080 --ssl=4433
-$ ./cmd up -d
-$ ./cmd npm install
-$ ./cmd npm run prod
-$ ./cmd restart
+./cmd build php
+./cmd composer install
+./cmd artisan key:generate
+./cmd artisan migrate --seed
+./cmd php bin/wookteam --port=8080 --ssl=4433
+./cmd up -d
+./cmd npm install
+./cmd npm run prod
+./cmd restart
 ```
 
 Installed, project url: **`http://IP:PORT`** (`PORT` is the parameter `8080` in the build).
@@ -44,20 +44,20 @@ Installed, project url: **`http://IP:PORT`** (`PORT` is the parameter `8080` in
 ### Change port
 
 ```bash
-$ ./cmd php bin/wookteam --port=8080 --ssl=4433
-$ ./cmd up -d
+./cmd php bin/wookteam --port=8080 --ssl=4433
+./cmd up -d
 ```
 
 #### Stop server
 
 ```bash
-$ ./cmd stop
+./cmd stop
 ```
 
 > P.S: Once application is setup, whenever you want to start the server (if it is stopped) run below command
 
 ```bash
-$ ./cmd start
+./cmd start
 ```
 
 ### Shortcuts for running command
@@ -65,14 +65,14 @@ $ ./cmd start
 > You can do this using the following command
 
 ```bash
-$ ./cmd artisan "your command"          // To run a artisan command
-$ ./cmd php "your command"              // To run a php command
-$ ./cmd composer "your command"         // To run a composer command
-$ ./cmd supervisorctl "your command"    // To run a supervisorctl command
-$ ./cmd test "your command"             // To run a phpunit command
-$ ./cmd npm "your command"              // To run a npm command
-$ ./cmd yarn "your command"             // To run a yarn command
-$ ./cmd mysql "your command"            // To run a mysql command
+./cmd artisan "your command"          // To run a artisan command
+./cmd php "your command"              // To run a php command
+./cmd composer "your command"         // To run a composer command
+./cmd supervisorctl "your command"    // To run a supervisorctl command
+./cmd test "your command"             // To run a phpunit command
+./cmd npm "your command"              // To run a npm command
+./cmd yarn "your command"             // To run a yarn command
+./cmd mysql "your command"            // To run a mysql command
 ```
 
 ## Default Account
@@ -87,14 +87,14 @@ $ ./cmd mysql "your command"            // To run a mysql command
 - Go to the directory and run the following commands in turn:
 
 ```bash
-$ git fetch --all
-$ git reset --hard origin/master
-$ git pull
-$ ./cmd composer update
-$ ./cmd artisan migrate
+git fetch --all
+git reset --hard origin/master
+git pull
+./cmd composer update
+./cmd artisan migrate
 
-$ ./cmd npm install
-$ ./cmd npm run prod
+./cmd npm install
+./cmd npm run prod
 
-$ ./cmd restart
+./cmd restart
 ```

+ 20 - 20
install/en/SERVER.md

@@ -14,15 +14,15 @@
 
 ```bash
 // using ssh
-$ git clone git@github.com:kuaifan/wookteam.git
+git clone git@github.com:kuaifan/wookteam.git
 // or you can use https
-$ git clone https://github.com/kuaifan/wookteam.git
+git clone https://github.com/kuaifan/wookteam.git
 
 // enter directory
-$ cd wookteam
+cd wookteam
 
 // copy .env
-$ cp .env.example .env
+cp .env.example .env
 ```
 
 #### 2. Modify`.env`
@@ -44,15 +44,15 @@ LARAVELS_LISTEN_PORT=5200
 #### 3. Setup application
 
 ```bash
-$ git checkout master # use dev branch for local development
-$ git pull origin master # use dev branch for local development
+git checkout master # use dev branch for local development
+git pull origin master # use dev branch for local development
 
-$ composer install
-$ php artisan key:generate
-$ php artisan migrate --seed
+composer install
+php artisan key:generate
+php artisan migrate --seed
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 ```
 
 #### 4. Run Laravels (WebSocket)
@@ -60,7 +60,7 @@ $ npm run production
 > Please confirm your environment and installation[Swoole](https://www.swoole.com/)。
 
 ```bash
-$ php bin/laravels start
+php bin/laravels start
 ```
 
 > It is recommended to supervise the main process through [Supervisord](http://supervisord.org/), the premise is without option `-d` and to set `swoole.daemonize` to `false`.
@@ -153,14 +153,14 @@ server {
 - Go to the directory and run the following commands in turn:
 
 ```bash
-$ git fetch --all
-$ git reset --hard origin/master
-$ git pull
-$ composer update
-$ php artisan migrate
+git fetch --all
+git reset --hard origin/master
+git pull
+composer update
+php artisan migrate
 
-$ npm install
-$ npm run production
+npm install
+npm run production
 
-$ php bin/laravels start # If use Supervisord restart Supervisord
+php bin/laravels start # If use Supervisord restart Supervisord
 ```