Ensure that the webapp can still be run locally

% PATH=./vendor/bin:$PATH GEM_HOME=./vendor rackup src/main/webapp/WEB-INF/config.ru
This commit is contained in:
R. Tyler Croy 2014-07-28 16:14:58 -07:00
parent 4f09a9c40b
commit beede49867
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if File.exists?(vendored_gems)
ENV['GEM_HOME'] = vendored_gems
end
jar_cache = File.expand_path(File.dirname(__FILE__) + '/.jarcache/')
jar_cache = File.expand_path(File.dirname(__FILE__) + '/../../../../.jarcache/')
if File.exists?(jar_cache)
Dir["#{jar_cache}/*.jar"].each { |j| require j }
end

View File

@ -1,3 +1,6 @@
# Pull in our current path to make sure we can safely require app.rb
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
require 'app'
map '/' do