Description:
Update README.rdoc
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r860:ccb0988a4eaf - - 1 file changed: 15 inserted, 4 deleted

@@ -25,7 +25,10
25 mysql> create database DATABASENAME;
25 mysql> create database DATABASENAME;
26 Query OK, 1 row affected (0.00 sec)
26 Query OK, 1 row affected (0.00 sec)
27
27
28 - mysql> grant all privileges on DATABASENAME.* to USERNAME@localhost identified by 'PASSWORD';
28 + mysql> create user USERNAME@localhost identified by 'PASSWORD';
29 + Query OK, 0 rows affected, 1 warning (0.00 sec)
30 +
31 + mysql> grant all privileges on DATABASENAME.* to USERNAME@localhost;
29 Query OK, 0 rows affected, 1 warning (0.00 sec)
32 Query OK, 0 rows affected, 1 warning (0.00 sec)
30
33
31 mysql> flush privileges;
34 mysql> flush privileges;
@@ -55,9 +58,14
55
58
56 === 3. Install necessary package and nodejs
59 === 3. Install necessary package and nodejs
57
60
61 +
58 First, we install required package via apt.
62 First, we install required package via apt.
59
63
60 - cafe@grader:~$ sudo apt install libmysqlclient-dev default-jdk unzip php-cli apache2 dirmngr gnupg apache2-dev
64 + cafe@grader:~$ sudo apt install git libmysqlclient-dev default-jdk unzip php-cli apache2 dirmngr gnupg apache2-dev
65 +
66 + Next, we need nodejs. Depends on your ubuntu version, the step to install correct version of nodejs differs.
67 +
68 + ==== 3.1 Install nodejs on Ubuntu 18.04
61
69
62 Since nodejs that comes with ubuntu 18.04 is very outdated, we need to install it manually. This follow the method outlined in https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04 under *Installing Node.js with Apt Using a NodeSource PPA*
70 Since nodejs that comes with ubuntu 18.04 is very outdated, we need to install it manually. This follow the method outlined in https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04 under *Installing Node.js with Apt Using a NodeSource PPA*
63
71
@@ -66,6 +74,9
66 sudo bash nodesource_setup.sh
74 sudo bash nodesource_setup.sh
67 sudo apt install nodejs
75 sudo apt install nodejs
68
76
77 + ==== 3.2 Install nodejs on Ubuntu 20.04 or newer
78 +
79 + cafe@grader:~$ sudo apt install nodejs
69
80
70 === 4. Install cafe-grader
81 === 4. Install cafe-grader
71
82
@@ -84,11 +95,11
84 cafe@grader:~$ wget https://github.com/cafe-grader-team/cafe-grader-judge-scripts/raw/master/installer/install.sh
95 cafe@grader:~$ wget https://github.com/cafe-grader-team/cafe-grader-judge-scripts/raw/master/installer/install.sh
85 cafe@grader:~$ . ./install.sh
96 cafe@grader:~$ . ./install.sh
86
97
87 - After installation is finished, grader is ready to run in development mode via WEBrick. We will try that by the following command which will start a grader accessible via http://localhost:3000/. You can try logging in to the system and verify that it is actually work.
98 + After installation is finished, grader is ready to run in development mode via Puma. We will try that by the following command which will start a grader accessible via http://localhost:3000/. You can try logging in to the system and verify that it is actually work.
88
99
89 cafe@grader:~/cafe_grader/web$ rails s
100 cafe@grader:~/cafe_grader/web$ rails s
90
101
91 - If Everything is OK, stop the WEBrick by Ctrl-C.
102 + If Everything is OK, stop the Puma by Ctrl-C.
92
103
93 We are almost done. The last step is to set up apache and Phusion so that cafe-grader is served by apache.
104 We are almost done. The last step is to set up apache and Phusion so that cafe-grader is served by apache.
94
105
You need to be logged in to leave comments. Login now