I have 2 Heroku apps, both Pyhon, and some python modules that are shared between them (i.e.: they are the same in both apps). What is the best way to set up my git / requirements.txt to achieve the following?
- The shared code is versioned (that is: it too sits in Git, I don't care where -- one of the projects? Another project?)
- In development, I have a single copy of that shared code on my disk
- In development, I can change that single copy of the shared code and have the change reflected in both apps, ideally without doing anything other than changing files on disk.
- When pushing to Heroku, all I do is a simple "push"
My gut feeling tells me I need to have the shared code as a Python package, on disk, and in development add it to each app's PYTHONPATH. Further, I would add it (how? using a private server? from s3? as a vendor dir?) to the requriments.txt on each app.
... but I can't quite nail it.
Any thoughts?