Add hot config reload

This commit is contained in:
simon
2019-06-01 15:00:50 -04:00
parent cdc3017948
commit 4f7b5b7d98
6 changed files with 65 additions and 19 deletions

2
jenkins/Jenkinsfile vendored
View File

@@ -26,7 +26,7 @@ pipeline {
sh 'cp *.go "/go/src/github.com/simon987/Architeuthis"'
sh 'cd /go/src/github.com/simon987/Architeuthis && go get ./...'
sh 'cd /go/src/github.com/simon987/Architeuthis && go build -a -installsuffix cgo -o "${WORKSPACE}/architeuthis" .'
sh 'tar -czf ${BUILD_NUMBER}_architeuthis.tar.gz config.json architeuthis'
sh 'tar -czf ${BUILD_NUMBER}_architeuthis.tar.gz config.json architeuthis reload.sh'
sshPut remote: remote, from: env.BUILD_NUMBER + '_architeuthis.tar.gz', into: 'architeuthis/webroot/'
}
}