Giter Club home page Giter Club logo

Comments (7)

gnomet avatar gnomet commented on May 31, 2024

Yea, this could be related to us having redirections e.g. from sharetribe.fi to sharetribe.com. It might pick the sharetribe.dev too for that. This is something that clearly should be done better, thinking the open source version. We probably should separate some of our own logic from the master branch. Should figure our some best practices for that. I guess many open source projects face the same issue.

from sharetribe.

gnomet avatar gnomet commented on May 31, 2024

one quick fix here could be to make domain_redirect be enabled only if that's said in config.yml

from sharetribe.

elf-pavlik avatar elf-pavlik commented on May 31, 2024

or maybe?

if APP_CONFIG.domain == 'sharetribe.com'

from sharetribe.

gnomet avatar gnomet commented on May 31, 2024

yep, sounds good. :) I'll add that check now.

from sharetribe.

gnomet avatar gnomet commented on May 31, 2024

:) It seems I did pay some attention to other servers, as I wrote there:

# These rules are specific to the Sharetribe.com server, but shouldn't cause trouble for open source installations.

# # And you if you need your own rules for redirection or rewrite, add here.

and added "request.domain != APP_CONFIG.domain" requirement. So if you are using sharetribe.dev with your /etc/hosts/ you might want to set same domain in your config.yml.

We've been using lvh.me as that's already pointing to localhost. But I also added it to /etc/hosts to make it work offline too.

from sharetribe.

elf-pavlik avatar elf-pavlik commented on May 31, 2024

i had 'sharetribe.dev:3000' in config.yml while request.domain didn't have port so it run all those checks...
maybe we should change config.example.yml and also remove :3000 ?

from sharetribe.

gnomet avatar gnomet commented on May 31, 2024

I added the
APP_CONFIG.domain == 'sharetribe.com'
check so that should be enough to avoid redirects elsewhere for now

from sharetribe.

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.