Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 482 Bytes

README.rdoc

File metadata and controls

23 lines (16 loc) · 482 Bytes

Multitenant Issues

This is sample project for simple multi-tenant architecture presented on Sarajevo ‘Ruby Meetup’ www.meetup.com/ruby/Sarajevo-BA/901742/.

How to start

  • 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