I have two repos: Web app (nodejs, but could be Rails, etc.) and Web site (static content html/css/js).
Heroku hosts the Web app, runs at e.g. www.example.com. Lots of dynamic content there e.g. example.com/ etc. (similar to twitter.com/).
The static content site also has to be at the base URL at specific URLs www.example.com/about /tour etc.
How can I have a single URL base www.example.com but still have the source come from both the Web site and the Web app?
I know I can have the Web app choose which URLs go where using router, but how do I actually get the Web app to get the static content? Options:
Any good ideas??
There are many ways you can manage semi-static content in Rails, check out this question: How to do static content in Rails?
Here's a question with resources for node.js: Static Content & NodeJS