Skip to content

Instantly share code, notes, and snippets.

@gkop
Last active December 17, 2015 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkop/5645223 to your computer and use it in GitHub Desktop.
Save gkop/5645223 to your computer and use it in GitHub Desktop.
Tweaks to ElasticBeanstalk's default Ruby AMI to install gems locally to application

Tweaks to ElasticBeanstalk's default Ruby AMI to install gems locally to application

in /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh

Replace bundle with bundle exec at line 13


in /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh

Add --deployment after bundle install at line 9


$ mkdir /var/app/support/vendor_bundle


in /opt/elasticbeanstalk/support/envvars

Add export EB_CONFIG_APP_VENDOR_BUNDLE=$EB_CONFIG_APP_SUPPORT/vendor_bundle


in /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh

Add ln -s $EB_CONFIG_APP_VENDOR_BUNDLE ./vendor/bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment