From c22c74334be4ea9260fc9954b38c1a15bfad8877 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 5 May 2020 20:02:01 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E6=9B=B4=E6=96=B0=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/install.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/install.sh b/docs/install.sh index 891e315..014a8c3 100644 --- a/docs/install.sh +++ b/docs/install.sh @@ -53,17 +53,14 @@ function init_system_lib() { function install_spug() { echo "开始安装Spug..." - curl -o /tmp/spug_latest.tar.gz https://spug.dev/installer/latest/spug_latest.tar.gz mkdir -p /data cd /data - tar xf /tmp/spug_latest.tar.gz - cd spug + git clone --depth=1 https://gitee.com/openspug/spug.git + curl -o /tmp/web_latest.tar.gz https://spug.dev/installer/web_latest.tar.gz + tar xf /tmp/web_latest.tar.gz -C spug/spug_web/ + cd spug/spug_api python3 -m venv venv source venv/bin/activate - ln -s /data/spug/venv /data/spug/spug_api/venv - mkdir repos - ln -s /data/spug/repos /data/spug/spug_api/repos - cd spug_api pip install wheel -i https://pypi.doubanio.com/simple/ pip install gunicorn mysqlclient -i https://pypi.doubanio.com/simple/ @@ -136,7 +133,7 @@ EOF cat << EOF > /etc/nginx/conf.d/spug.conf server { listen 80 default_server; - root /data/spug/spug_web/; + root /data/spug/spug_web/build/; location ^~ /api/ { rewrite ^/api(.*) \$1 break;