public this repo is viewable by everyone
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Updates for production runtime environment
Long Nguyen (author)
about 1 month ago
commit  7707cbbbc76ce3636ec876c40855073d0d3bc0ec
tree    6117c1c99d4f3304775b41f6d561ba98d504e8eb
parent  989780e15cf52d7d15cd44ef9971643c18035dfa
...
56
57
58
59
60
 
 
 
 
 
 
 
 
...
56
57
58
 
59
60
61
62
63
64
65
66
67
0
@@ -56,4 +56,11 @@ Rails::Initializer.run do |config|
0
 
0
   # Make Active Record use UTC-base instead of local time
0
   # config.active_record.default_timezone = :utc
0
-end
0
\ No newline at end of file
0
+end
0
+
0
+# Set INLINEDIR to override default location for ruby_inline directory
0
+# The home directory may not be correctly set in an "su"/"sudo" situation
0
+# and will lead to runtime errors with image_science
0
+#
0
+# The directory /tmp/ruby.[USER] is used instead
0
+ENV['INLINEDIR']="/tmp/ruby.#{ENV['USER']}"
...
35
36
37
38
39
 
 
40
41
42
...
35
36
37
 
 
38
39
40
41
42
0
@@ -35,8 +35,8 @@ end
0
 begin
0
   ENV['FERRET_USE_LOCAL_INDEX'] = 'true'
0
   ENV['RAILS_ENV'] = $ferret_server_options['environment']
0
- #require(File.join(File.dirname(__FILE__), '../../../../config/environment'))
0
- require(File.join(File.dirname(ENV['_']), '../config/environment'))
0
+ require(File.join(File.dirname(__FILE__), '../../../../config/environment'))
0
+ #require(File.join(File.dirname(ENV['_']), '../config/environment'))
0
   require 'acts_as_ferret'
0
   ActsAsFerret::Remote::Server.new.send($ferret_server_action)
0
 rescue Exception => e

Comments

    No one has commented yet.