Cybrix
Cybrix

Reputation: 3318

Share a folder between Heroku App

For my project, I would like to be able to setup multiple websites (App) and according to the requirements from a clients, I will activate and setup modules. Those modules could be a news module, images viewer module and so on.

My engine, which consist of scripts and libraries that manage a few things such as the WebApp routing, the modules, user rights for the CMS. I would like to get this code shared among all my App to avoid unseless duplication.

I would like to know what's the best way to do this on Heroku since I am totally new to this (Heroku) and I am not totally sure if that is feasable.

Also, am I wrong to believe that each websites is an App even if basically the only difference between them are the template and a single setup file?

Thank you

Upvotes: 1

Views: 172

Answers (1)

stiebitzhofer
stiebitzhofer

Reputation: 314

  1. If you have no experience with git get familiar with it.
  2. I would suggest to have one application with different branches in which you keep the configuration specific to the instance.
  3. You create an app instance for each website.
  4. You push the specific branch to the specific app, e.g.

    git push [email protected]:.git :master

Upvotes: 1

Related Questions