Commit 13ee3e6109b5998dcb8bc6d61ab10cd8fce6f350

Authored by ly525
1 parent c0cad259

chore(sync2server.sh): update host user

Showing 1 changed file with 3 additions and 3 deletions
sync2server.sh
... ... @@ -4,7 +4,7 @@
4 4 # @Author: ly525
5 5 # @Date: 2020-01-12 11:21:11
6 6 # @LastEditors : ly525
7   - # @LastEditTime : 2020-01-12 16:29:05
  7 + # @LastEditTime : 2020-01-12 16:30:08
8 8 # @FilePath: /luban-h5/sync2server.sh
9 9 # @Github: https://github.com/ly525/luban-h5
10 10 # @Description: script for sync source code from local to server
... ... @@ -56,7 +56,7 @@ sync_source() {
56 56 --exclude "*.db"\
57 57 --exclude "db.sqlite3"\
58 58 --exclude "vagrant"\
59   - ./* root@$SERVER_HOST:$SOURCE_PATH
  59 + ./* centos@$SERVER_HOST:$SOURCE_PATH
60 60 }
61 61  
62 62 #!zh: 正式同步代码前的试运行,不会真正同步代码,主要用来检测本地和服务器代码有哪些不同
... ... @@ -86,7 +86,7 @@ sync_sourcedryrun() {
86 86 --exclude "*.db"\
87 87 --exclude "db.sqlite3"\
88 88 --exclude "vagrant"\
89   - ./* root@$SERVER_HOST:$SOURCE_PATH
  89 + ./* centos@$SERVER_HOST:$SOURCE_PATH
90 90 }
91 91  
92 92 case "$2" in
... ...