|
@@ -14,29 +14,29 @@
|
|
|
|
|
|
```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.docker .env
|
|
|
|
|
|
+cp .env.docker .env
|
|
```
|
|
```
|
|
|
|
|
|
#### 2. Build image & install
|
|
#### 2. Build image & install
|
|
|
|
|
|
```bash
|
|
```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).
|
|
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
|
|
### Change port
|
|
|
|
|
|
```bash
|
|
```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
|
|
#### Stop server
|
|
|
|
|
|
```bash
|
|
```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
|
|
> P.S: Once application is setup, whenever you want to start the server (if it is stopped) run below command
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-$ ./cmd start
|
|
|
|
|
|
+./cmd start
|
|
```
|
|
```
|
|
|
|
|
|
### Shortcuts for running command
|
|
### Shortcuts for running command
|
|
@@ -65,14 +65,14 @@ $ ./cmd start
|
|
> You can do this using the following command
|
|
> You can do this using the following command
|
|
|
|
|
|
```bash
|
|
```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
|
|
## 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:
|
|
- Go to the directory and run the following commands in turn:
|
|
|
|
|
|
```bash
|
|
```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
|
|
```
|
|
```
|