View a markdown version of this page

Installing packages with a Gemfile on Elastic Beanstalk - AWS Elastic Beanstalk

Installing packages with a Gemfile on Elastic Beanstalk

To use RubyGems to install packages that your application requires, include a Gemfile file in the root of your project source.

Example Gemfile
source "https://rubygems.org"
gem 'sinatra'
gem 'json'
gem 'rack-parser'

When a Gemfile file is present, Elastic Beanstalk runs bundle install to install dependencies. For more information, see the Gemfiles and Bundle pages on the Bundler.io website.

Note

You can use a different version of Puma besides the default that's pre-installed with the Ruby platform. To do so, include an entry in a Gemfile that specifies the version. You can also specify a different application server, such as Passenger, by using a customized Gemfile.

For both of these cases you're required to configure a Procfile to start the application server.

For more information see Configuring the application process with a Procfile .

Warning Javascript is disabled or is unavailable in your browser.

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.

AltStyle によって変換されたページ (->オリジナル) /