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:
parent
4f09a9c40b
commit
beede49867
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue