title: How can I deploy 2 rails apps from a single Git repo?
body: <p>I have 2 rails applications that live inside the same git repo.</p>
  
  <p>There is a shared folder where common logic lives.</p>
  
  <pre><code>- app_1
  
  - shared
  
  - app_2
  </code></pre>
  
  <p>The <code>shared</code> folder is really just a symlink to the appropriate places inside the <code>app_1</code> folder. There is also a <code>shared_public</code> folder that is symlinked to <code>app_1/public/files</code> and <code>app_2/public/files</code>.</p>
  
  <p>How can I do this? I'm open to anything, it's a clean slate. The project was never deployed previously, so I don't have a existing infrastructure to rely on. And splitting the shared logic out is (unfortunately) not an option currently, because of the timeframe I have to work with.</p>