Reputation: 12141
I'm having 2 rails applications, and I want to deploy both on Heroku. For example, app1 will be the app for desktop and app2 will be only for mobile devices (I'll be using jQuery Mobile). App2 will get data from app1 by RESTFul web services.
How should I do that in Heroku? App1 will be the main one (http://www.mycompany.com), app2 will be deployed to (http://m.mycompany.com)
Thanks a lot.
Upvotes: 1
Views: 148
Reputation: 8131
This is the wrong way to do this. What you need to do is follow something like this: http://railscasts.com/episodes/221-subdomains-in-rails-3 . Essentially, once you get subdomains setup inside your rails app then you can use your views to dictate what happens with the m.domain.com and that is still plugged into your DB.
Upvotes: 2