Hosting pc2 scoreboard web pages using WTI - pc2ccs/pc2v9 GitHub Wiki

This article describes how to use the WTI server as a web server hosting the pc2 scoreboard HTML/web pages. Previously if WTI was not used, a web server (ex. Apache) needed to be installed used.

Checklist

  1. Start WTI
  2. Create new pc2 scoreboard directories
  3. Update pc2 Scoring Properties
  4. Start pc2 scoreboard module
  5. Verify pc2 scoreboard web pages

Individual steps details

Start WTI

See TODO: insert article link here: for instructions about how to start WTI

Create new pc2 scoreboard directories

For this example there two directories: scoreboard and supersecret.

scoreboard is the Public (eventually frozen) scoreboard location supersecret is the Private (never frozen, typically for Judges) scoreboard location

The directories are created in the WTI-UI project directory

/home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI
mkdir /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard
mkdir /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret
chmod 755 /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard
chmod 755 /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret

Update pc2 Scoring Properties

  1. Start the pc2 admin
  2. Navigate using Configure Contest -> Settings -> Edit Scoring Properties
  3. Update two scoring properties
Output HTML dir for Judges value to  /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret
Output Public HTML dir value to /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard
  1. (TODO: wiki this should be item 3.) Click Update
  2. Click update on Settings Pane

Using CDP in place of updating using Admin

These same values can be added to contest.yaml to be set via the pc2 server -load option (See ).

output-private-score-dir: /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/supersecret
output-public-score-dir: /home/ubuntu/pc2/6169/projects/WebTeamInterface-1.1/WebContent/WTI-UI/scoreboard

Start pc2 scoreboard module

Start the pc2 scoreboard module using the same user that was used to start WTI

See TODO: insert web page link here: for instructions to start the pc2 scoreboard

Viewing/verify pc2 scoreboard web pages

Whichever host is used for the WTI team, that same host will be where the scoreboard pages are located.

If this is the WTI team web page

http://www.acme.com:8080/

These would be the web pages for the pc2 scoreboard

http://www.acme.com:8080/scoreboard
http://www.acme.com:8080/supersecret