Forráskód Böngészése

修复docker一些已知问题

kuaifan 5 éve
szülő
commit
a1e55df4b0

+ 2 - 1
docker/php.Dockerfile

@@ -20,10 +20,11 @@ RUN apt-get update \
         lsb-release \
         ca-certificates \
         libjpeg-dev \
+        libfreetype6-dev \
         && curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
         && apt-get -y install nodejs \
         && rm -r /var/lib/apt/lists/* \
-        && docker-php-ext-configure gd --with-jpeg \
+        && docker-php-ext-configure gd --with-freetype --with-jpeg \
         && docker-php-ext-install pdo_mysql gd pcntl zip
 
 # Copy application file to /var/www

+ 2 - 2
install/DOCKER.md

@@ -36,7 +36,7 @@ $ ./cmd php bin/wookteam --port=8080
 $ ./cmd up -d
 $ ./cmd npm install
 $ ./cmd npm run prod
-$ ./cmd supervisorctl restart all
+$ ./cmd restart
 ```
 
 到此安装完毕,项目地址为:**`http://IP:PORT`**(`PORT`为构建项目中的参数`8080`)。
@@ -96,5 +96,5 @@ $ ./cmd artisan migrate
 $ ./cmd npm install
 $ ./cmd npm run prod
 
-$ ./cmd supervisorctl restart all
+$ ./cmd restart
 ```

+ 2 - 2
install/en/DOCKER.md

@@ -36,7 +36,7 @@ $ ./cmd php bin/wookteam --port=8080
 $ ./cmd up -d
 $ ./cmd npm install
 $ ./cmd npm run prod
-$ ./cmd supervisorctl restart all
+$ ./cmd restart
 ```
 
 Installed, project url: **`http://IP:PORT`** (`PORT` is the parameter `8080` in the build).
@@ -96,5 +96,5 @@ $ ./cmd artisan migrate
 $ ./cmd npm install
 $ ./cmd npm run prod
 
-$ ./cmd supervisorctl restart all
+$ ./cmd restart
 ```

+ 1 - 0
resources/assets/js/main/pages/todo.vue

@@ -382,6 +382,7 @@
         },
         mounted() {
             if ($A.getToken() === false) {
+                window.location.replace($A.webUrl());
                 return;
             }
             this.refreshTask();