Description:
installs bundler before running bundle in installation script
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r142:b55671b945cc - - 1 file changed: 1 inserted, 1 deleted

@@ -85,49 +85,49
85 85 echo " database: $database" >> config/database.yml
86 86 echo " pool: 5" >> config/database.yml
87 87 echo " username: $username" >> config/database.yml
88 88 echo " password: $password" >> config/database.yml
89 89 echo " host: localhost" >> config/database.yml
90 90 echo " socket: /var/run/mysqld/mysqld.sock" >> config/database.yml
91 91 echo "" >> config/database.yml
92 92 echo "production:" >> config/database.yml
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 117 echo "Intalling web interface complete..."
118 118 echo
119 119 echo "Fetching grader"
120 120
121 121 cd ..
122 122
123 123 mkdir judge
124 124 cd judge
125 125 git clone -q git://github.com/jittat/cafe-grader-judge-scripts.git scripts
126 126 mkdir raw
127 127 mkdir ev-exam
128 128 mkdir ev
129 129 mkdir result
130 130 mkdir log
131 131
132 132 echo "Configuring grader"
133 133
You need to be logged in to leave comments. Login now