lib/apps.rb in magpie-0.8.8 vs lib/apps.rb in magpie-0.8.8.1
- old
+ new
@@ -26,10 +26,10 @@
SNAKE_APP = Rack::Builder.new {
use Rack::ContentType, "text/html"
use Rack::ContentLength
- use Rack::Static, :urls => ["/images"], :root => File.join(Dir.pwd, "..", "static")
+ use Rack::Static, :urls => ["/images"], :root => File.join(File.dirname(__FILE__), "..", "static")
use Snake do |snake|
snake.tongue :alipay, :states => :index
snake.tongue :chinabank, :states => :index, :actions => :index
snake.tongue :tenpay, :states => :index, :actions => :index