-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool.sh
More file actions
executable file
·42 lines (42 loc) · 1.3 KB
/
Copy pathtool.sh
File metadata and controls
executable file
·42 lines (42 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
echo "o please input your selected:"
echo "1. auto git deploy_debug 部署到线上测试环境"
echo "2. auto git deploy 部署到线上生产环境"
echo "3. local deploy 本地部署"
echo "4. new git deploy_debug 第一次建立deploy_debug"
echo "5. new git deploy 第一次建立deploy"
read select
case $select in
1)
git status #确认干净
git checkout deploy_debug
git merge master
git push origin deploy_debug
git checkout master
;;
2)
git status #确认干净
git checkout deploy
git merge master
git push origin deploy
git checkout master
;;
3)
php artisan migrate --force
grunt --force
;;
4)
git status #确认干净
git checkout -b deploy_debug
git push -u origin deploy_debug
git checkout master
;;
5)
git status #确认干净
git checkout -b deploy
git push -u origin deploy
git checkout master
;;
*)
echo you select nothing
;;
esac