This is sample project for simple multi-tenant architecture presented on Sarajevo ‘Ruby Meetup’ www.meetup.com/ruby/Sarajevo-BA/901742/.
-
Clone repository
-
bundle install
-
rake db:migrate
-
rake db:seed
-
rails s
-
edit /etc/hosts file to add 2 tenants:
127.0.0.1 ius.acme.com 127.0.0.1 zaharije.acme.com
Those tenants are seeded in (db/seed.rb).
Tenants can be accessed via:
-
ius.acme.com:3000
-
zaharije.acme.com:3000