-
Notifications
You must be signed in to change notification settings - Fork 24
Hosting pc2 scoreboard web pages using WTI
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.
- Start WTI
- Create new pc2 scoreboard directories
- Update pc2 Scoring Properties
- Start pc2 scoreboard module
- Verify pc2 scoreboard web pages
See TODO: insert article link here: for instructions about how to start WTI
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
- Start the pc2 admin
- Navigate using Configure Contest -> Settings -> Edit Scoring Properties
- 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
- (TODO: wiki this should be item 3.) Click Update
- Click update on Settings Pane
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 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
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