Description:
update install.sh to work with latest ubuntu LTS
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r266:88b545da976a - - 1 file changed: 13 inserted, 0 deleted

@@ -118,24 +118,37
118 echo " database: $database" >> config/database.yml
118 echo " database: $database" >> config/database.yml
119 echo " pool: 5" >> config/database.yml
119 echo " pool: 5" >> config/database.yml
120 echo " username: $username" >> config/database.yml
120 echo " username: $username" >> config/database.yml
121 echo " password: $password" >> config/database.yml
121 echo " password: $password" >> config/database.yml
122 echo " host: localhost" >> config/database.yml
122 echo " host: localhost" >> config/database.yml
123 echo " socket: /var/run/mysqld/mysqld.sock" >> config/database.yml
123 echo " socket: /var/run/mysqld/mysqld.sock" >> config/database.yml
124
124
125 echo "Object.instance_eval{remove_const :GRADER_ROOT_DIR}" >> config/initializers/cafe_grader_config.rb
125 echo "Object.instance_eval{remove_const :GRADER_ROOT_DIR}" >> config/initializers/cafe_grader_config.rb
126 echo "Object.instance_eval{remove_const :GRADING_RESULT_DIR}" >> config/initializers/cafe_grader_config.rb
126 echo "Object.instance_eval{remove_const :GRADING_RESULT_DIR}" >> config/initializers/cafe_grader_config.rb
127 echo "GRADER_ROOT_DIR = '$CAFE_PATH/judge'" >> config/initializers/cafe_grader_config.rb
127 echo "GRADER_ROOT_DIR = '$CAFE_PATH/judge'" >> config/initializers/cafe_grader_config.rb
128 echo "GRADING_RESULT_DIR = '$CAFE_PATH/judge/result'" >> config/initializers/cafe_grader_config.rb
128 echo "GRADING_RESULT_DIR = '$CAFE_PATH/judge/result'" >> config/initializers/cafe_grader_config.rb
129
129
130 + # setup secret file
131 + SECRET_A=`rake secret`
132 + SECRET_B=`rake secret`
133 + SECRET_C=`rake secret`
134 + echo "development:" > config/secrets.yml
135 + echo " secret_key_base: '$SECRET_A'" >> config/secrets.yml
136 + echo "test:" >> config/secrets.yml
137 + echo " secret_key_base: '$SECRET_B'" >> config/secrets.yml
138 + echo "production:" >> config/secrets.yml
139 + echo " secret_key_base: '$SECRET_C'" >> config/secrets.yml
140 +
141 +
142 +
130 echo "Installing required gems"
143 echo "Installing required gems"
131 gem install bundler
144 gem install bundler
132 bundle install
145 bundle install
133
146
134 echo "Running rake tasks to initialize database"
147 echo "Running rake tasks to initialize database"
135
148
136 rake db:migrate
149 rake db:migrate
137 rake db:seed
150 rake db:seed
138
151
139 echo "Running rake tasks to precompile the assets"
152 echo "Running rake tasks to precompile the assets"
140
153
141 rake assets:precompile
154 rake assets:precompile
You need to be logged in to leave comments. Login now