diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-22 10:54:30 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-23 15:34:04 +0200 |
commit | 7cee5e34d9c8df519ecd8f81d4e122fcb9460a55 (patch) | |
tree | 3dca4949f39d8b82180df677f12bb1faeb477c4f | |
parent | bf3c0236036a6ef3f13223dce54db3a2cbb7781a (diff) | |
download | sonarqube-7cee5e34d9c8df519ecd8f81d4e122fcb9460a55.tar.gz sonarqube-7cee5e34d9c8df519ecd8f81d4e122fcb9460a55.zip |
Added tmux output for dev logs
-rwxr-xr-x | fork.sh | 22 | ||||
-rw-r--r-- | server/sonar-search/logs/search.log | 0 |
2 files changed, 22 insertions, 0 deletions
diff --git a/fork.sh b/fork.sh new file mode 100755 index 00000000000..f2ee7459a96 --- /dev/null +++ b/fork.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +mvn clean install -DskipTests -Denforcer.skip=true $* + +if [[ "$OSTYPE" == "darwin"* ]]; then + OS='macosx-universal-64' +else + OS='linux-x86-64' +fi + +cd sonar-application/target/ +if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then + unzip sonarqube-*.zip +fi +cd sonarqube-* +bin/$OS/sonar.sh stop +killall -9 java +touch logs/application.log +touch logs/search.log +touch logs/sonar.log +bin/$OS/sonar.sh start +tmux new-session "tmux split-window -v 'tail -f logs/sonar.log'; tmux split-window -h 'tail -f logs/search.log'; tail -f logs/application.log" diff --git a/server/sonar-search/logs/search.log b/server/sonar-search/logs/search.log deleted file mode 100644 index e69de29bb2d..00000000000 --- a/server/sonar-search/logs/search.log +++ /dev/null |