A Few Things to Remember to Do before Deploying a Rails App to AWS Elastic Beanstalk

This might just be a few notes for myself but maybe someone else will find this handy:

  • Include the Puma gem, gem 'puma' (and bundle of course).
  • In the database.yml change the production database settings to this:
  • Once the environment is created run rake secret in the command line.
  • Copy the output and type eb setenv SECRET_KEY_BASE=generated_secret_key
  • Any additional environment variables are set the same way

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.