File tree 4 files changed +23
-1
lines changed
4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -76,3 +76,9 @@ cp ./examples/* $path/
76
76
77
77
# 本地编译
78
78
go get github.com/ibbd-dev/csv2es/csv2es
79
+
80
+ #
81
+ cd csv2es
82
+ go build
83
+ rm -f csv2es-$version
84
+ mv csv2es csv2es-$version
Original file line number Diff line number Diff line change 1
1
csv2es
2
+ csv2es *
Original file line number Diff line number Diff line change 4
4
# Author: alex
5
5
# Created Time: 2018年06月21日 星期四 18时46分23秒
6
6
7
- csv2es --host=100.115.147.50 --port=9200 --index=test --type=test --mapping=./eyenlp_area2016.json --csv=./eyenlp_area2016.csv
7
+ cmd=" csv2es"
8
+ if [ -f csv2es ]; then
9
+ cmd=" ./csv2es"
10
+ fi
11
+
12
+ $cmd --host=100.115.147.50 --port=9200 --index=test --type=test --mapping=./eyenlp_area2016.json --csv=./eyenlp_area2016.csv
13
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # cp到服务器
4
+ # Author: alex
5
+ # Created Time: 2018年06月21日 星期四 18时54分41秒
6
+
7
+ scp examples/* ibbd@insight01:/var/www/csv2es/
8
+ scp csv2es/csv2es-v* ibbd@insight01:/var/www/csv2es/csv2es
9
+
You can’t perform that action at this time.
0 commit comments