소스 검색

:bug: fix laravel tmp files permission

Jeremy Zheng 3 년 전
부모
커밋
5cee39a644
4개의 변경된 파일10개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 4
      documents/development/php/README.md
  2. 5 2
      documents/development/spring/README.md
  3. BIN
      documents/development/spring/laravel-logs.png
  4. 4 1
      scripts/spring/laravel.sh

+ 1 - 4
documents/development/php/README.md

@@ -9,10 +9,7 @@
 - PHP-WEB 文件写入权限不足
 
 ```bash
-# for folder
-chmod 777 FOLDER_NAME
-# for file
-chmod 666 FILE_NAME
+XXX/mint/scrips/spring/laravel.sh
 ```
 
 ## Php-Nginx for local container

+ 5 - 2
documents/development/spring/README.md

@@ -25,8 +25,11 @@ pg_restore -Fc -h 127.0.0.1 -p 5432 -U YOUR_ID -d YOUR_ID_mint < data.dump
 ## PHP 开发(以用户 xxx 为例)
 
 - `~/www/htdocs/public/info.php` => `https://YOUR_ID.spring.wikipali.org/info.php`
-- 日志文件在 `~/www/logs/`
-- 其余参见[常见 PHP 设置](php/)
+- 日志文件在
+
+  ![logs](laravel-logs.png)
+
+- 其余参见[常见 PHP 设置](../php/)
 
 ## 服务设置
 

BIN
documents/development/spring/laravel-logs.png


+ 4 - 1
scripts/spring/laravel.sh

@@ -2,4 +2,7 @@
 
 chmod 666 storage/logs/*.log
 
-chmod 777 storage/logs storage/framework/sessions
+chmod 777 storage/logs \
+    storage/framework/sessions \
+    storage/framework/views \
+    storage/framework/cache/data