| Revision 688,
1.1 KB
checked in by jdalbey, 4 years ago
(diff) |
|
Add config dir to dev startup scripts
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | # Kill any process leftover from previous run |
|---|
| 4 | kill $(ps aux | grep "[p]ython -m CGIHTTPServer 8080" | awk '{print $2}') |
|---|
| 5 | kill $(ps aux | grep "[p]ython deploy/unifiedlogger.zip" | awk '{print $2}') |
|---|
| 6 | |
|---|
| 7 | # Get path to this script |
|---|
| 8 | # $0 contains path to the script file, even if launched from file manager |
|---|
| 9 | SCRIPT_PATH=$(dirname "$(readlink -f "$0")") |
|---|
| 10 | # CD to the script folder |
|---|
| 11 | cd "$SCRIPT_PATH" |
|---|
| 12 | |
|---|
| 13 | # Start the Simulator System with the full incident script |
|---|
| 14 | cd ../webapps |
|---|
| 15 | # Delete any existing CADcomments.log |
|---|
| 16 | rm dynamicdata/CADcomments.log |
|---|
| 17 | # start the local webserver |
|---|
| 18 | echo "Starting webserver in folder" `pwd` |
|---|
| 19 | python -m CGIHTTPServer 8080 & |
|---|
| 20 | sleep 1 |
|---|
| 21 | cd .. |
|---|
| 22 | java -DCONFIG_DIR=config/devlinux -jar deploy/CADserver.jar & |
|---|
| 23 | sleep 5 |
|---|
| 24 | # Start Unified Logger Service |
|---|
| 25 | python deploy/unifiedlogger.zip config/devlinux & |
|---|
| 26 | sleep 5 |
|---|
| 27 | java -jar deploy/SimManager.jar full_script_2016.xml & |
|---|
| 28 | sleep 10 |
|---|
| 29 | # Start a browser and run the web applications |
|---|
| 30 | firefox localhost:8080/einotebook localhost:8080/cptms localhost:8080/unifiedlogmonitor.html & |
|---|
| 31 | |
|---|
| 32 | sleep 10 |
|---|
| 33 | java -DCONFIG_DIR=config/devlinux -jar deploy/CADclient.jar & |
|---|
| 34 | sleep 5 |
|---|
| 35 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.