Show More
Commit Description:
change hashbang to /usr/bin/env ruby
Commit Description:
change hashbang to /usr/bin/env ruby
References:
File last commit:
Show/Diff file:
Action:
config/environment.rb.SAMPLE
| 11 lines
| 335 B
| text/plain
| TextLexer
|
|
r82 | # Rails app directory (where you store web interface dir) | ||
RAILS_ROOT = "RAILS-ROOT" | ||||
|
r22 | |||
|
r82 | # This is where scripts dir is. | ||
GRADER_ROOT = "GRADER-DIR/scripts" | ||||
|
r22 | |||
|
r23 | # This load all required codes | ||
|
r22 | require File.join(File.dirname(__FILE__),'../lib/boot') | ||
# load the required environment file | ||||
require File.dirname(__FILE__) + "/env_#{GRADER_ENV}.rb" | ||||