ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
原理: 1.docker加载windows系统共享目录里面的文件很慢 2.docker加载容器内部目录的文件很快 3.raync同步文件时只会同步有差异的文件,所以同进的时候挺快 步骤: 1.容器中安装 rsync ``` apt-get install rsync ``` 2.将以下两个文件添加到项目的根目录 exclude.log ``` vendor .git .idea public/* resource/* runtime/* test/* key/* ``` push.sh ``` #!/bin/bash rsync -azv --exclude-from=/home/www/wwwroot/hnsb_cinema/exclude.log /home/www/wwwroot/hnsb_cinema/ /home/wwwback php /home/wwwback/bin/swoft http:start ``` 在 /home/wwwback 目录下执行 composer install 以后启动项目的时候执行 ./push.sh 文件即可。