Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>(<em>Note that the following workaround should only be used if you <strong>must</strong> use Git sources for dependencies. It is recommended not to install dependencies from external Git repositories if it can be avoided. See below for details on why that is.</em>)</p> <p>When using Git backed libraries in a Gemfile with Passenger, you <em>must</em> disable shared gems in an installation (in addition to installing Git in the hook you listed above). You can do this by setting the <code>BUNDLE_DISABLE_SHARED_GEMS</code> Bundler environment variable in your existing <code>.ebextensions/ruby.config</code> file like so:</p> <pre><code>option_settings: - option_name: BUNDLE_DISABLE_SHARED_GEMS value: "1" - option_name: BUNDLE_PATH value: "vendor/bundle" packages: yum: git: [] </code></pre> <p>Disabling shared gems will force all dependencies to be vendored into your application in <code>vendor/bundle</code> as specified by the <code>BUNDLE_PATH</code> variable.</p> <p>Note that, whenever possible, you should avoid installing public libraries from Git sources with your application. Using Git for library locations introduces another point of failure for a deployment install, since the Git repository may be temporarily unavailable or even permanently moved. Also keep in mind that forcing vendored installs in a deployment will cause your Elastic Beanstalk deployments to be much slower on subsequent deploys of an app with the same dependencies. This is because the libraries will be re-installed at each deploy instead of taking advantage of the system-wide installation that Elastic Beanstalk has Bundler perform by default.</p> <p>In short, if there is an official RubyGem release of the library in question, you should use that version instead; and if not, you should suggest to the library author that an official RubyGem release be made available.</p> <p>FYI a similar question about this Git problem with regular Passenger/Rails deployments was previously asked: <a href="https://stackoverflow.com/questions/3605235/rails-3-passenger-cant-find-git-gems-installed-by-bundler">Rails 3: Passenger can&#39;t find git gems installed by bundler</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload