sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

Unable to proxy sc-server depending on mode. #105

Open publickeating opened 10 years ago

publickeating commented 10 years ago

Ideally, you should be able to set mode specific proxies for easier development. For example,

# Development (debug) mode configuration when using local backend.
mode :local_debug do
  proxy "/", :to => "localhost:3000"
end

# Development (debug) mode configuration when using remote backend.
mode :remote_debug do
  proxy "/", :to => "myhost.com:8080", :secure => true
end

But this doesn't work, because all proxy directives are read and later directives override earlier directives.