Browse Source

保留 www 目录,更新安装备注

zjcqoo 6 năm trước cách đây
mục cha
commit
1372bf2dee
5 tập tin đã thay đổi với 12 bổ sung4 xóa
  1. 1 2
      .gitignore
  2. 7 1
      docs/setup.md
  3. 0 1
      i.sh
  4. 3 0
      www/.gitignore
  5. 1 0
      www/README.md

+ 1 - 2
.gitignore

@@ -1,2 +1 @@
-._*
-www
+._*

+ 7 - 1
docs/setup.md

@@ -71,10 +71,16 @@ cd ~
 git clone --depth=1 https://github.com/EtherDream/jsproxy.git server
 ```
 
-开启代理服务
+下载静态资源文件到 `www` 目录
 
 ```bash
 cd server
+git clone -b gh-pages --depth=1 [email protected]:EtherDream/jsproxy.git www
+```
+
+开启服务:
+
+```bash
 ./run.sh
 ```
 

+ 0 - 1
i.sh

@@ -146,7 +146,6 @@ install() {
 
   log "下载静态资源 ..."
   curl -o www.tar.gz $ZIP_URL/gh-pages
-  mkdir jsproxy-$JSPROXY_VER/www
   tar zxf www.tar.gz -C jsproxy-$JSPROXY_VER/www --strip-components=1
   rm -f www.tar.gz
 

+ 3 - 0
www/.gitignore

@@ -0,0 +1,3 @@
+*
+!README.md
+!.gitignore

+ 1 - 0
www/README.md

@@ -0,0 +1 @@
+该目录存放首页静态资源,内容和 gh-pages 分支相同