Skip to content

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

@publickeating

Description

@publickeating

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions