mirror of
https://github.com/corda/corda.git
synced 2025-02-08 03:50:34 +00:00
ENT-1237 Fix run script for IRS Demo web apps
This commit is contained in:
parent
91f7dbe658
commit
64c0d41a5d
@ -21,8 +21,8 @@ To run from the command line in Windows:
|
|||||||
``samples\irs-demo\build``
|
``samples\irs-demo\build``
|
||||||
2. Run ``gradlew.bat samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
2. Run ``gradlew.bat samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
||||||
3. Run ``cd samples\irs-demo`` to change current working directory
|
3. Run ``cd samples\irs-demo`` to change current working directory
|
||||||
4. Run ``cordapp\build\nodes\runnodes`` to open up several 3 terminals for each nodes
|
4. Run ``cordapp\build\nodes\runnodes.bat`` to open up several 3 terminals for each nodes
|
||||||
5. Run ``web\build\webapps\webapps`` to open up several 3 terminals for each nodes' webservers
|
5. Run ``web\build\webapps\webapps.bat`` to open up several 3 terminals for each nodes' webservers
|
||||||
|
|
||||||
This demo also has a web app. To use this, run nodes and then navigate to http://localhost:10007/ and
|
This demo also has a web app. To use this, run nodes and then navigate to http://localhost:10007/ and
|
||||||
http://localhost:10010/ to see each node's view of the ledger.
|
http://localhost:10010/ to see each node's view of the ledger.
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
function run_webapp() {
|
function run_webapp() {
|
||||||
if [ ! -z "$TMUX" ]; then
|
if [ ! -z "$TMUX" ]; then
|
||||||
tmux new-window -n $1 $2; [ $? -eq 0 -o $? -eq 143 ] || sh
|
tmux new-window -n $1 "$2"; [ $? -eq 0 -o $? -eq 143 ] || sh
|
||||||
else
|
else
|
||||||
xterm -T $1 -e $2; [ $? -eq 0 -o $? -eq 143 ] || sh
|
xterm -T $1 -e "$2"; [ $? -eq 0 -o $? -eq 143 ] || sh
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
run_webapp "NotaryService" "cd \"#DIR#\" && java -Dspring.profiles.active=NotaryService -jar #JAR_PATH#"
|
run_webapp "NotaryService" "cd \"#DIR#\" && java -Dspring.profiles.active=NotaryService -jar #JAR_PATH#" &
|
||||||
run_webapp "BankA" "cd \"#DIR#\" && java -Dspring.profiles.active=BankA -jar #JAR_PATH#"
|
run_webapp "BankA" "cd \"#DIR#\" && java -Dspring.profiles.active=BankA -jar #JAR_PATH#" &
|
||||||
run_webapp "BankB" "cd \"#DIR#\" && java -Dspring.profiles.active=BankB -jar #JAR_PATH#"
|
run_webapp "BankB" "cd \"#DIR#\" && java -Dspring.profiles.active=BankB -jar #JAR_PATH#" &
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user