@@ -1,2 +1 @@
-._*
-www
+._*
@@ -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
@@ -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
@@ -0,0 +1,3 @@
+*
+!README.md
+!.gitignore
@@ -0,0 +1 @@
+该目录存放首页静态资源,内容和 gh-pages 分支相同