Changes between Version 9 and Version 10 of HOWTO-DeploySimulator


Ignore:
Timestamp:
04/18/2019 01:22:29 PM (7 years ago)
Author:
jdalbey
Comment:

Update for startserver bat files

Legend:

Unmodified
Added
Removed
Modified
  • HOWTO-DeploySimulator

    v9 v10  
    11= How to deploy and run Simulator (dev/test environment) = 
    2 == Deployment == 
     2== Deploy Simulator == 
    33On a development machine checkout the TMC Simulator trunk from the SVN repo. 
    44 
     
    1313While connected to the TMC lab LAN open a network connection to STORAGE. (Note: it accepts anonymous connection without password.  If this fails, as a workaround just transfer the files using !SneakerNet - a USB Flash Drive.) 
    1414 
    15 Copy desired Jar files from `trunk/deploy` folder to STORAGE. 
    16  
    17  * `CADserver_rNNN.jar` - Server, Always needed 
    18  * `SimManager_rNNN.jar` - Runs the simulation 
    19  * `CADClient_rNNN.jar` - Student workstation client 
    20  * `ClockClient.jar` - Sim clock view for instructors 
     15Copy `trunk/deploy` folder to STORAGE.   If needed, copy any changed config files or data files. 
    2116 
    2217Login to Windows on Development workstation. 
     
    2419Open File Explorer to STORAGE. 
    2520 
    26 Copy Jar files to `C:\TMC Simulator 2019` folder. Copy any changed config files, event data files.  Optionally, delete any old Jar files. 
     21Copy (replace) deploy folder to `C:\TMC Simulator 2019` folder. 
    2722 
    2823== Deploy web applications == 
    2924Copy the `webapps `folder from repository trunk to Dev machine folder `C:\TMC Simulator 2019`. 
    3025 
    31 Make sure Python is installed. Create `WebServer.bat` in  `C:\TMC Simulator 2019` folder (if not already present). 
     26Make sure Python 2.7 is installed. 
    3227 
    33 {{{ 
    34 cd webapps & C:\Python27\python -m CGIHTTPServer 80 
    35 }}} 
    3628== Starting the simulation == 
    37 Double-click on a Jar file to execute it: 
     29Use File Explorer to open `bin `folder.   
    3830 
    39 `CADserver_rNNN.jar` 
     31Double-click on `renamejars.bat`.  
     32 
     33Decide which script you want to run ("full" or "practice").  Double-click on the correspondingly named `systemstart` .bat file. 
     34 
     35Observe a terminal window open and display webserver status messages. 
    4036 
    4137The server GUI should appear displaying time 0:00:00. 
    4238 
    43 `SimManager_rNNN.jar` 
    44  
    45 The Simulation Manager GUI should appear.  Click "Load Script" and select the desired script from the File Chooser. 
    46  
    47 (Alternately, open a command prompt to get a console where error messages are displayed and run the Jar files from the command line.) 
     39The Simulation Manager GUI should appear.  
    4840 
    4941Optionally, start any CADClients, ideally on a different workstation. 
    5042 
    51 Click "Start" button in Simulation Manager GUI.  Observe the clock begin counting every second.  In CADServer GUI, observe the timer running.  Click on the "Traffic" tab to view the queue of traffic events.  As events are processed, there will be a ten second delay and then the affected dots will change color in the CPTMS map. 
     43Click "Start" button in Simulation Manager GUI.  Observe the clock begin counting every second.  In CADServer GUI, observe the timer running.  Click on the "Traffic" tab to view the queue of traffic events.  As events are processed, there will be a ten second delay and then the affected dots will change color in the CPTMS map (see below). 
    5244 
    5345Monitor simulation progress.  The event queue should be processed according to the simulation time.  The dot colors should be changed as specified in the traffic event data. 
    5446 
    5547==== Start Web Apps ==== 
    56 Launch `WebServer.bat` by double-clicking.  Observe a terminal window open and display webserver status messages. 
     48Start a web browser (ideally on a separate workstation). 
    5749 
    58 Start a web browser (ideally on a separate workstation).  
     50Start CPTMS:  In the address bar enter "`http://cptms.tmcsim/cptms.html`".  A google map should appear with green dots. 
    5951 
    60 Start CPTTMS:  In the address bar enter "`http://cptms.tmcsim/cptms.html`".  A google map should appear with green dots. 
    61  
    62 Start EInotebook: In the address bar enter "`http://cptms.tmcsim/einotebook`".  The four tabs of the Electronic Instructor Notebook should appear, with the clock displaying the simulation time. 
     52Start EInotebook: In the address bar enter "`http://cptms.tmcsim/einotebook`".  The four tabs of the Electronic Instructor Notebook should appear, with the clock displaying the simulation time. 
    6353 
    6454Optionally, open the CMS/HAR monitor in a web browser: "`http://cptms.tmcsim/cms_monitor.html`"