Description:
It seems like WEBrick needs this.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r182:d570247f93ef - - 1 file changed: 4 inserted, 0 deleted

@@ -93,48 +93,52
93 93 echo " adapter: mysql2" >> config/database.yml
94 94 echo " encoding: utf8" >> config/database.yml
95 95 echo " reconnect: false" >> config/database.yml
96 96 echo " database: $database" >> config/database.yml
97 97 echo " pool: 5" >> config/database.yml
98 98 echo " username: $username" >> config/database.yml
99 99 echo " password: $password" >> config/database.yml
100 100 echo " host: localhost" >> config/database.yml
101 101 echo " socket: /var/run/mysqld/mysqld.sock" >> config/database.yml
102 102
103 103 echo "Object.instance_eval{remove_const :GRADER_ROOT_DIR}" >> config/initializers/cafe_grader_config.rb
104 104 echo "Object.instance_eval{remove_const :GRADING_RESULT_DIR}" >> config/initializers/cafe_grader_config.rb
105 105 echo "GRADER_ROOT_DIR = '$CAFE_PATH/judge'" >> config/initializers/cafe_grader_config.rb
106 106 echo "GRADING_RESULT_DIR = '$CAFE_PATH/judge/result'" >> config/initializers/cafe_grader_config.rb
107 107
108 108 echo "Installing required gems"
109 109 gem install bundler
110 110 bundle install
111 111
112 112 echo "Running rake tasks to initialize database"
113 113
114 114 rake db:migrate
115 115 rake db:seed
116 116
117 + echo "Running rake tasks to precompile the assets"
118 +
119 + rake assets:precompile
120 +
117 121 echo "Intalling web interface complete..."
118 122 echo
119 123 echo "Fetching grader"
120 124
121 125 cd ..
122 126
123 127 mkdir judge
124 128 cd judge
125 129 git clone -q git://github.com/jittat/cafe-grader-judge-scripts.git scripts
126 130 mkdir raw
127 131 mkdir ev-exam
128 132 mkdir ev
129 133 mkdir result
130 134 mkdir log
131 135
132 136 echo "Configuring grader"
133 137
134 138 cp scripts/config/env_exam.rb.SAMPLE scripts/config/env_exam.rb
135 139 cp scripts/config/env_grading.rb.SAMPLE scripts/config/env_grading.rb
136 140
137 141 # create new environment.rb file
138 142 echo "RAILS_ROOT = '$CAFE_PATH/web'" > scripts/config/environment.rb
139 143 echo "GRADER_ROOT = '$CAFE_PATH/judge/scripts'" >> scripts/config/environment.rb
140 144 echo "require File.join(File.dirname(__FILE__),'../lib/boot')" >> scripts/config/environment.rb
You need to be logged in to leave comments. Login now