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

r90:c62b55de9ac7 - - 1 file changed: 2 inserted, 1 deleted

@@ -112,30 +112,31
112 mkdir ev
112 mkdir ev
113 mkdir result
113 mkdir result
114 mkdir log
114 mkdir log
115
115
116 echo "Configuring grader"
116 echo "Configuring grader"
117
117
118 cp scripts/config/env_exam.rb.SAMPLE scripts/config/env_exam.rb
118 cp scripts/config/env_exam.rb.SAMPLE scripts/config/env_exam.rb
119 cp scripts/config/env_grading.rb.SAMPLE scripts/config/env_grading.rb
119 cp scripts/config/env_grading.rb.SAMPLE scripts/config/env_grading.rb
120
120
121 # create new environment.rb file
121 # create new environment.rb file
122 echo "RAILS_ROOT = '$CAFE_PATH/web'" > scripts/config/environment.rb
122 echo "RAILS_ROOT = '$CAFE_PATH/web'" > scripts/config/environment.rb
123 echo "GRADER_ROOT = '$CAFE_PATH/judge/scripts'" >> scripts/config/environment.rb
123 echo "GRADER_ROOT = '$CAFE_PATH/judge/scripts'" >> scripts/config/environment.rb
124 echo "require File.join(File.dirname(__FILE__),'../lib/boot')" >> scripts/config/environment.rb
124 echo "require File.join(File.dirname(__FILE__),'../lib/boot')" >> scripts/config/environment.rb
125 echo "require File.dirname(__FILE__) + \"/env_#{GRADER_ENV}.rb\"" >> scripts/config/environment.rb
125 echo "require File.dirname(__FILE__) + \"/env_#{GRADER_ENV}.rb\"" >> scripts/config/environment.rb
126
126
127 cd ..
127 cd ..
128
128
129 echo "Installing web server mongrel"
129 echo "Installing web server mongrel"
130
130
131 sudo gem install mongrel --no-ri --no-rdoc
131 sudo gem install mongrel --no-ri --no-rdoc
132
132
133 echo "Now you are ready to run cafe grader...."
133 echo "Now you are ready to run cafe grader...."
134 echo
134 echo
135 echo "Try:"
135 echo "Try:"
136 + echo
136 echo " cd web"
137 echo " cd web"
137 echo " ./script/server"
138 echo " ./script/server"
138 echo
139 echo
139 echo "and access web at http://localhost:3000/"
140 echo "and access web at http://localhost:3000/"
141 + echo "The root username is 'root', its password is 'ioionrails'."
140
142
141 -
You need to be logged in to leave comments. Login now