See http://eventuate.io/docs/java/spring-configuration.html for details on new configuration properties. Upgraded to Spring Boot 1.2.8 Misc changes to build scripts
25 lines
742 B
Bash
Executable File
25 lines
742 B
Bash
Executable File
#! /bin/bash -e
|
|
|
|
# Execute this script in the java-spring or scala-spring directory
|
|
# Runs all of the services
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
if [[ -f account-cs.pid ]]; then
|
|
echo pid file exists
|
|
exit 1
|
|
fi
|
|
|
|
java -jar accounts-command-side-service/build/libs/accounts-command-side-service.jar > account-cs.log &
|
|
echo $! > account-cs.pid
|
|
|
|
java -jar accounts-query-side-service/build/libs/accounts-query-side-service.jar --server.port=8081 > account-qs.log &
|
|
echo $! > account-qs.pid
|
|
|
|
java -jar transactions-command-side-service/build/libs/transactions-command-side-service.jar --server.port=8082 > transfers-cs.log &
|
|
echo $! > transfers-cs.pid
|
|
|
|
echo -n waiting for services....
|
|
|
|
$DIR/wait-for-services.sh localhost
|