Files
event-sourcing-examples/run-all-services.sh
Chris Richardson bbea6d9d2f Upgraded to work with the Eventuate client framework version 0.12
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
2015-12-21 15:02:04 -08:00

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