Description:
added more instructions on creating mysal data
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r89:32f1f89c92d7 - - 1 file changed: 15 inserted, 0 deleted

@@ -14,48 +14,63
14 14 sudo gem install rails --no-ri --no-rdoc
15 15 sudo gem install rack -v=1.0.1 --no-ri --no-rdoc
16 16
17 17 echo "Fetching Cafe Grader from Git repositories"
18 18
19 19 echo "Fetching web interface"
20 20
21 21 mkdir cafe_grader
22 22 cd cafe_grader
23 23 git clone http://git.gitorious.org/cafe-grader/cafe-grader-web.git web
24 24
25 25 echo "Configuring rails app"
26 26
27 27 cp web/config/environment.rb.SAMPLE web/config/environment.rb
28 28
29 29 echo "At this point we will need MySQL user and database."
30 30 echo "Have you created MySQL user and database for Cafe grader? (Y/N) "
31 31 read ch
32 32
33 33 if [ "$ch" = "n" -o "$ch" = "N" ]
34 34 then
35 35 echo "Please open another terminal and create the user and database for Cafe grader."
36 36 echo "Don't forget to grant access to that database for the user."
37 37 echo "Please have username, password, and database name ready before continue."
38 + echo
39 + echo "The following are instructions:"
40 + echo "1. Run mysql:"
41 + echo
42 + echo " mysql -u root -p"
43 + echo
44 + echo " if you have just installed mysql, the root password is the one that you have just entered"
45 + echo "2. Create a new database, a new user, and grant access to grader database:"
46 + echo
47 + echo " create user 'USERNAME'@'localhost' identified by 'PASSWORD';"
48 + echo " create database DATABASENEME;"
49 + echo " grant all on DATABASENAME.* to 'USERNAME'@'localhost';"
50 + echo
51 + echo " Replace USERNAME, PASSWORD, and DATABASENAME accordingly."
52 + echo
38 53 echo "Hit enter when ready..."
39 54 read dummy
40 55 fi
41 56
42 57 CAFE_PATH=`pwd`
43 58
44 59 cd web
45 60
46 61 echo "Please provide grader database:"
47 62 read database
48 63
49 64 echo "Please provide grader username:"
50 65 read username
51 66
52 67 echo "Please provide $username password:"
53 68 read password
54 69
55 70 echo "development:" > config/database.yml
56 71 echo " adapter: mysql" >> config/database.yml
57 72 echo " database: $database" >> config/database.yml
58 73 echo " username: $username" >> config/database.yml
59 74 echo " password: $password" >> config/database.yml
60 75 echo " host: localhost" >> config/database.yml
61 76 echo "" >> config/database.yml
You need to be logged in to leave comments. Login now