I've inherited a fully functioning production site running Nginx, Passenger, Rails 3.2, Ruby 1.9 (I believe), Mysql 5.7 & JS frontend on Ubuntu 16.04. The client wants to add major new functionality and I would rather provide that using Rails 5. However this new functionality is part and parcel of the current system from the client's point of view. i.e. the client wants to be able to access this functionality by just clicking on a menu option within the existing site.
One suggestion I've had is that I set up nginx using reverse proxy to access the diferent Rails projects. I have used something similar on my development machine but there I've used separate Passenger Standalone instances running on different ports and of course the website names were different too.
What I want to achieve this time is:
www.clientsite.com/newfunc - takes me to the Rails 5 site. i.e. the domain is the same but just by adding /newfunc I should be able to serve up the Rails 5 site. Since I will only be calling
www.clientsite.com/newfunc from within JS it will appear 'seamless' to the client.
My questions are:
1. Can this be done at all?
2. If it can then do I need to run Passenger Standalone?
3. How would I configure Passenger/Passenger Standalone and Nginx.
All help gratefully received with thanks.