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