Questions tagged [figaro-ruby]

Figaro is a Rails app configuration library.

Figaro is a configuration library that exposes configuration data, stored in application.yml file or in environmental variables pre-loaded in Ruby's ENV object, to the Rails app. It is inspired by the Twelve-factor app methodology.

Questions should mostly be about the library itself or its integrations in apps.

External resources:

Related tags: ,

53 questions
1
vote
1 answer

Rails: Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)

This error has been asked about before but I have tried all the answers on here and none have worked. I am trying to connect AWS s3 to rails: and I am getting the error pasted at the bottom of this question. carrierwave.rb: CarrierWave.configure do…
Nicholas Muir
  • 2,897
  • 8
  • 39
  • 89
1
vote
1 answer

Can I use the figaro gem to set env variables in my local environment?

I use the Figaro gem to set env variables for my apps hosted on Heroku. To set the required env variables on production I use this: $ figaro heroku:set -e production Can I do something similar for my local environment? Right now I'm manually calling…
RobertJoseph
  • 7,968
  • 12
  • 68
  • 113
1
vote
3 answers

figaro vs. config_for: which is the better solution for storing security credentials?

I am currently searching for the best way to store configuration data especially for security credentials in my rails 4.2 app. It seems to me, that there are two good solutions. Gem Figaro (Simple, Heroku-friendly Rails app configuration using ENV…
coderuby
  • 1,188
  • 1
  • 11
  • 26
1
vote
1 answer

Sinatra with Figaro Gem

I m trying to use Figaro gem with Sinatra. I have installed Figaro and it created the following file/ folder... /config/application.yml On this file I have added some environment variables... ENV['GMAIL_USERNAME'] ENV['GMAIL_PASSWORD'] Then on my…
polarcare
  • 575
  • 1
  • 6
  • 24
1
vote
2 answers

Connection with the database with figaro is not working on rails

I am using rails with figaro for configuration, database user with the name test. I have a DATABASE_URL in application.yml DATABASE_URL: "postgresql://localhost/database_name?user=test" When I run a rake db:migrate I get the following error…
user3814030
  • 1,263
  • 3
  • 20
  • 37
1
vote
1 answer

Figaro not loading proper environment in application.yml

I am working on a Ruby on Rails application. I recently updated to the last Rails version (4.2.3) and I discovered when I run rake test it erase my development database. I am using the Figaro gem to declare all my environment variables. Here is my…
anthony
  • 640
  • 1
  • 10
  • 32
1
vote
1 answer

Using Figaro to sync tokens on production and development

I'm working through a Rails exercise dealing with Figaro and syncing tokens on both the production and development environment, and I'm not sure if what I've done has fulfilled the intent of this exercise. Specifically, it says to run rake secret…
1
vote
2 answers

`method_missing': undefined method `aws_access_key' for {}:Figaro::Env

I'm currently having issues with configuring Figaro for my Rails 4 application. Whenever I try to run RSpec or rake db:migrate, I encounter the following error: method_missing': undefined methodaws_access_key' for {}:Figaro::Env Here is the complete…
0
votes
0 answers

Figaro not using correct environment variable when testing

For some reason Figaro is not setting my DATABASE_URL properly when testing. It uses the development DATABASE_URL for some reason. Here's the final few rows of my application.yml: development: DATABASE_URL: …
Jeremy Thomas
  • 6,240
  • 9
  • 47
  • 92
0
votes
1 answer

No API Key defined

Hi I am new to rails and I am building a flickr feed app that lets a user display photos from a flickr feed when they enter their id, however I am getting this error when I go to the localhost:3000: Flickr::FlickrAppNotConfigured in…
CoolGuy
  • 99
  • 7
0
votes
1 answer

Separate environment variables into different environments

I'm drawing a blank. I'm trying to set environment variable in my Rails 6 app. I have installed figaro and can set variables like normal. But what I'm trying to do is set a default set of variables along with dev/staging/production. I think it was…
0
votes
0 answers

Not able to load the default credentials for the google-cloud-text_to_speech Gem in Rails 5.1

In my Rails 5.1.7 application, I want to use a method within a rake-task to turn text into a mp3 audiofile. I'm using the google-cloud-text_to_speech gem for doing so. Here's part of my setup: /Gemfile: gem 'google-cloud-text_to_speech' Here is the…
0
votes
2 answers

How do I set up my config files in Rails to get SendGrid to work in Heroku? AuthenticationError (535 failed: Bad username / password

I'm trying to set up active mailer functionality in my Rails app with Devise and SendGrid so that users can receive a confirmation email when they sign up and can request a forgot password link. When I deploy to Heroku and try and sign up I get an…
Steve
  • 418
  • 1
  • 4
  • 16
0
votes
0 answers

Figaro not creating 'application.yml' file

I'm using figaro to securely store gmail login information. As far as I can tell, when the gem is installed it is supposed to create an application.yml fil to store this data in. It is also supposed to add application.yml to the gitignore file.…
dbate
  • 127
  • 13
0
votes
0 answers

My API Stripe keys not working in production?

I have an app where i am trying to integrate stripe api. While following a certain tutorial i managed to configure my stripe keys as shown below. In config/application.yml (figaro) development: stripe_secret_key: sk_test_****************** …