mirror of
https://github.com/corda/corda.git
synced 2025-02-01 00:45:59 +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``
|
||||
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
|
||||
4. Run ``cordapp\build\nodes\runnodes`` 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
|
||||
4. Run ``cordapp\build\nodes\runnodes.bat`` to open up several 3 terminals for each nodes
|
||||
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
|
||||
http://localhost:10010/ to see each node's view of the ledger.
|
||||
@ -33,4 +33,4 @@ view it.
|
||||
|
||||
*Note:* The IRS web UI currently has a bug when changing the clock time where it may show no numbers or apply fixings
|
||||
inconsistently. The issues will be addressed in a future milestone release. Meanwhile, you can take a look at a simpler
|
||||
oracle example here: https://github.com/corda/oracle-example.
|
||||
oracle example here: https://github.com/corda/oracle-example.
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
function run_webapp() {
|
||||
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
|
||||
xterm -T $1 -e $2; [ $? -eq 0 -o $? -eq 143 ] || sh
|
||||
xterm -T $1 -e "$2"; [ $? -eq 0 -o $? -eq 143 ] || sh
|
||||
fi;
|
||||
}
|
||||
|
||||
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 "BankB" "cd \"#DIR#\" && java -Dspring.profiles.active=BankB -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 "BankB" "cd \"#DIR#\" && java -Dspring.profiles.active=BankB -jar #JAR_PATH#" &
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user