aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/activity-spec-assembly/start.sh
blob: f81247580b2859da9343df3db8de09991f96fa65 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [[ -z "${CASSANDRA_HOST}" ]]; then
	echo "CASSANDRA_HOST environment variable must be set"
	exit 1
fi

#Replace 'CASSANDRA_HOST' in configuration.yaml with value of CASSANDRA_HOST environment variable
sed -i "s/CASSANDRA_HOST/${CASSANDRA_HOST}/" configuration.yaml

java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 "$JETTY_HOME/start.jar" -Dconfiguration.yaml=configuration.yaml