|
@@ -13,21 +13,21 @@
|
|
#### 1. Clone the project to your local or server
|
|
#### 1. Clone the project to your local or server
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-// using ssh
|
|
|
|
|
|
+# using ssh
|
|
git clone git@github.com:kuaifan/wookteam.git
|
|
git clone git@github.com:kuaifan/wookteam.git
|
|
-// or you can use https
|
|
|
|
|
|
+# or you can use https
|
|
git clone https://github.com/kuaifan/wookteam.git
|
|
git clone https://github.com/kuaifan/wookteam.git
|
|
|
|
|
|
-// enter directory
|
|
|
|
|
|
+# enter directory
|
|
cd wookteam
|
|
cd wookteam
|
|
|
|
|
|
-// copy .env
|
|
|
|
|
|
+# copy .env
|
|
cp .env.example .env
|
|
cp .env.example .env
|
|
```
|
|
```
|
|
|
|
|
|
#### 2. Modify`.env`
|
|
#### 2. Modify`.env`
|
|
|
|
|
|
-> Database、WebSocket
|
|
|
|
|
|
+> Database...
|
|
|
|
|
|
```env
|
|
```env
|
|
DB_CONNECTION=mysql
|
|
DB_CONNECTION=mysql
|
|
@@ -50,9 +50,6 @@ git pull origin master # use dev branch for local development
|
|
composer install
|
|
composer install
|
|
php artisan key:generate
|
|
php artisan key:generate
|
|
php artisan migrate --seed
|
|
php artisan migrate --seed
|
|
-
|
|
|
|
-npm install
|
|
|
|
-npm run production
|
|
|
|
```
|
|
```
|
|
|
|
|
|
#### 4. Run Laravels (WebSocket)
|
|
#### 4. Run Laravels (WebSocket)
|
|
@@ -156,11 +153,8 @@ server {
|
|
git fetch --all
|
|
git fetch --all
|
|
git reset --hard origin/master
|
|
git reset --hard origin/master
|
|
git pull
|
|
git pull
|
|
|
|
+
|
|
composer update
|
|
composer update
|
|
php artisan migrate
|
|
php artisan migrate
|
|
-
|
|
|
|
-npm install
|
|
|
|
-npm run production
|
|
|
|
-
|
|
|
|
php bin/laravels start # If use Supervisord restart Supervisord
|
|
php bin/laravels start # If use Supervisord restart Supervisord
|
|
```
|
|
```
|