forked from zutianbiao/baize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.sh
22 lines (19 loc) · 1.16 KB
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# (c) 2016 , Tianbiao Zu <[email protected]>
#
# 该文件是Baize的一部分,Baize是一款通用的DevOps系统
#
# 该文件负责Baize基础软件环境的打包
# git clone [email protected]:zutianbiao/baize_v2.git;mv baize_v2 baize;cd baize;sh make.sh
# 安装
# mkdir -p /letv/ngxlog/baize;ln -s /letv/ngxlog/baize /usr/local/baize;rm -fr /tmp/baize*;wget -SO /tmp/baize_v1.0.tar.gz "115.182.94.72/baize/baize_v1.0.tar.gz";mkdir -p /tmp/baize;tar zxvf /tmp/baize_v1.0.tar.gz -C /tmp/baize;cd /tmp/baize;sleep 3;sh manage.sh install proxy
##############################################################################
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
mkdir -p /tmp/baize/log/
/usr/local/baize/env/bin/python manage.py migrate
/usr/local/baize/env/bin/python manage.py migrate --database=web
/usr/local/baize/env/bin/python manage.py migrate --database=agent
/usr/local/baize/env/bin/python manage.py migrate --database=proxy
tar zcvf /tmp/baize_v1.0.tar.gz ./* --exclude=*.pyc --exclude=*.log --exclude=.git --exclude=make.sh --exclude=./static
#scp /tmp/baize_v1.0.tar.gz 115.182.94.72:/var/www/html/baize/