Skip to content

Instantly share code, notes, and snippets.

View drkpkg's full-sized avatar
🏠
Working from home

Felix Daniel Coca Calvimontes drkpkg

🏠
Working from home
View GitHub Profile
@indiesquidge
indiesquidge / subdomain-localhost-rails-5.md
Created January 19, 2016 07:42
how to access subdomains locally with Rails 5

Subdomaining Localhost with Rails 5

I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api

Rails.application.routes.draw do
  constraints subdomain: "api" do
    scope module: "api" do