bo-oz
bo-oz

Reputation: 2872

Heroku App is not working after changing aws-gem, works fine on local machine

I used to have gem 'aws-sdk' in my Gemfile, but updated this to gem 'aws-sdk-s3' to prevent unnecessary package loads. While this works fine on my local machine, the heroku app crashed with the following errors:

cannot load such file -- aws-sdk (You may need to install the aws-sdk gem))

When uploading my new app to Heroku, I do get the following warning, but the link on Heroku makes no sense to what actions to take:

remote:  !   Warning: You are running on a deprecated stack.
remote:  !   Please upgrade to the latest stack by following the instructions on:
remote:  !   https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack

Help is very much appreciated, thanks!

Upvotes: 0

Views: 104

Answers (1)

Thomas R. Koll
Thomas R. Koll

Reputation: 3139

It worked locally because you have the aws-sdk gem installed. It doesn't on the server because it is missing from the Gemfile. Add this to your Gemfile:

gem "aws-sdk"

then run bundle and commit the changes in the Gemfile and Gemfile.lock

About the stack, upgrading is simple https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack#upgrading-an-app

Upvotes: 2

Related Questions