First, I've been trying to solve this for days and have seen, and tried, a lot of posts on stack. My problem persists. Plainly, my app works fine locally but when I access the site after a successful deploy to Heroku I'm getting this message in the upper left corner of the page, and nothing else, making it a little harder to troubleshoot. After following this tutorial to deploy to Ubuntu on Digital Ocean seems to be about when things started going bad. I've tried answers from here and here, as well as a handful of other similar posts, but NOTHING has worked. Initially I was getting a missing arguments message from Heroku, but followed other suggestions which seemed to fix that but lead me to the current issue. Not sure how much longer I can hide behind the "I'm a Ruby Noob" excuse, but after a year deployment seems to be the bain of my existence. I suspect it has something to do with setting of ENV variables but no fixes have worked yet for me. Reveal Variables have been manually set on Heroku. secrets.yml, application.yml and database.yml files are in my .gitignore.
Some other noteworthy items - I'm using figaro to manage environmental varibles. I have an S3 bucket to store images set up using Railscast Pro#383, Carrierwave and Fog handling uploads. Again, this was working at some point earlier.
Has anyone gotten this error or know how I can acutely resolve it?
config/initializers/carrierwave.rb
CarrierWave.configure do |config|
config.root = Rails.root.join('tmp')
config.cache_dir = 'carrierwave'
config.fog_credentials = {
provider: 'AWS', # required
aws_access_key_id: ENV["AWS_ACCESS_KEY_ID"], # required
aws_secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"] # required
}
config.fog_directory = ENV["AWS_S3_BUCKET_NAME"] # required
end
config/application.yml
production:
AWS_S3_BUCKET_NAME: 'my_aws_secret_bucket_name_from_s3_manually_installed_on_heroku'
AWS_ACCESS_KEY_ID: 'my_aws_secret_access_key_id_from_s3_manually_installed_on_heroku'
AWS_SECRET_ACCESS_KEY: 'my_aws_secret_access_key_from_s3_manually_installed_on_heroku'
SECRET_KEY_BASE: 'my_secret_key_base_generated_from_doing_rake_secrets'
config/secrets.yml
development:
secret_key_base: some_random_#_for_dev
test:
secret_key_base: some_random_#_for_test
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
.gitignore
# Ignore application configuration
config/application.yml
# Ignore secrets configuration
config/secrets.yml
# Ignore database configuration
config/database.yml