Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 3c4250b

Browse files
stefano-maggiololw
authored andcommitted
Updated the README
1 parent d7d1bcd commit 3c4250b

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,29 @@ refer to as $REPO in the following.
166166
Configuring and installing CMS
167167
------------------------------
168168

169+
The first thing to do is to create the user and the database. For
170+
PostgreSQL, this is obtained with the following commands (note that
171+
the user need not to be a superuser, nor to be able to create
172+
databases nor roles):
173+
174+
```bash
175+
sudo su postgres
176+
createuser cmsuser -P
177+
createdb -O cmsuser cmsdb
178+
```
179+
169180
There are two configuration files, one for CMS itself and one for the
170-
rankings. Samples for both files are in $REPO/examples. You want
171-
to copy them to the same file names but without the ".sample" suffix
181+
rankings. Samples for both files are in $REPO/examples. You want to
182+
copy them to the same file names but without the ".sample" suffix
172183
(that is, to $REPO/examples/cms.conf and
173184
$REPO/examples/cms.ranking.conf) before modifying them.
174185

175186
- cms.conf is intended to be the same in all servers; all
176-
configurations are explained in the file; of particular importance is
177-
the definition of core_services, that specifies where the services
178-
are going to be run, and how many of them.
187+
configurations are explained in the file; of particular importance
188+
is the definition of core_services, that specifies where the
189+
services are going to be run, and how many of them, and the
190+
connecting line for the database, in which you need to specify the
191+
name of the user created above and its password.
179192

180193
- cms.ranking.conf is intended to be different on each server that
181194
will host a ranking. The addresses and log-in information of each
@@ -273,14 +286,17 @@ particular we are aware of the following:
273286

274287
- IOI 2012 (International Olympiad in Informatics), September 2012;
275288

276-
- OII 2011 (Italian Olympiad in Informatics), September 2011;
289+
- OII 2011 (Italian Olympiad in Informatics), September 2011 and OII
290+
2012, October 2012;
277291

278292
- AIIO 2012 (Australian Invitational Informatics Olympiad), February
279293
2012;
280294

281295
- FARIO 2012 (French-Australian Regional Informatics Olympiad), March
282296
2012;
283297

298+
- Taipei High School Programming Contest, Taiwan, October 2012;
299+
284300
- training camps for the selections of the national teams of Australia,
285301
Italy and Latvia.
286302

0 commit comments

Comments
 (0)