GithubHelp home page GithubHelp logo

Comments (4)

benschwarz avatar benschwarz commented on September 17, 2024

This is probably done purposely - but I think anyone who is expecting to use a real subdomain with your library would probably expect to use "real" hosts during development.

from subdomain-fu.

ctcherry avatar ctcherry commented on September 17, 2024

This can be controlled via configuration. In your case you need tld_size for development environment to be 1. Put this in an initializer (rails), or some other code that is run once at application start.
SubdomainFu.tld_sizes = { :development => 1,
:test => 0,
:production => 1}

from subdomain-fu.

benschwarz avatar benschwarz commented on September 17, 2024

Yes I understand the configuration, I just think that the default should be to expect a subdomain host - Its the least surprising course of action, considering that the library is for handling subdomains.

from subdomain-fu.

jc00ke avatar jc00ke commented on September 17, 2024

I just tried subdomain_fu using Tim Pope's http://j.mp/smackahost and for test.smackaho.st it's returning test.smackaho for the current_subdomain. That seems odd for a default configuration to return like that.

from subdomain-fu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.