adamstrickland / sweet_tooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TLD-based routing

To get TLD-based routing to work on a local machine, edit your /etc/hosts:

127.0.0.1  somedomain.com somedomain.co.uk

Then start the app:

bundle exec bin/rails server -p 7272

And visit the appropriate domain, e.g. http://somedomain.com:7272 to view the US "site", http://somedomain.co.uk:7272 for the UK "site".

Overview

Uses Rails 5 w/ built-in webpack/react support, i.e. webpacker and react-rails.

About


Languages

Language:Ruby 72.8%Language:HTML 14.6%Language:JavaScript 10.8%Language:CSS 1.8%