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
0
votes
0 answers

in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)

Everything has been great. Until I checked out a new branch, and now I get this error. I use figaro which generated an application.yml to store the env variables for the aws credentials. I have successfully been able to deploy to heroku and use my…
0
votes
2 answers

How to configure a sinatra rack app to use figaro

I saw this post and think something is missing or a change in version. I have a very simple rack app using figaro -- hosted with Heroku. Currently, Im on local machine. I now need to use ENV. My app structure: APP |_ config/ |_ public/ |_ views/ …
Sylar
  • 11,422
  • 25
  • 93
  • 166
0
votes
0 answers

Stripe figaro gem main:Object (NameError)

I created a form for a rails 5 project for users to save there c/c on stripe for future pmts. I had it working successfully (successful code without implementing figaro below) prior to hiding keys using figaro. Now the server will not start error…
Zurch
  • 39
  • 10
0
votes
1 answer

Ruby on Rails - Submitting Email Form Newsletter to Mailchimp

I am trying to submit an email that goes into my Mailchimp List that I have created. The thing is that when I click subscribe in my production environment, I get a 200 OK message in my console: [ee0cda43-9651-4c7e-9499-ac499094d8b6] Started POST…
w_lpz
  • 613
  • 4
  • 15
  • 28
0
votes
0 answers

Add SSL cert to application.yml in rails

I just integrated an encrypted shopping cart to my Rails(4.2) app for use with Paypal. Currently, my app reads the SSL cert & key files into constants which are then used during encryption. This works fine, but I'd prefer not to publish those files…
0
votes
0 answers

Port 587 blocked on Ubuntu VPS... can't unblock it...what to do?

My app can't send order invoices and gives this error in the production.log: I, [2017-05-21T17:17:19.539388 #9385] INFO -- : Completed 500 Internal Server Error in 26ms (ActiveRecord: 3.1ms) F, [2017-05-21T17:17:19.540462 #9385] FATAL --…
DaudiHell
  • 808
  • 10
  • 32
0
votes
1 answer

Rails - can't get Travis CI to grasp my S3 credentials

I got completely jammed at trying to get AWS S3 to work together with Travis using Figaro. This all works fine in dev mode: picture.rb class Picture < ApplicationRecord acts_as_list belongs_to :imageable, polymorphic: true has_attached_file…
Code-MonKy
  • 2,026
  • 2
  • 14
  • 27
0
votes
1 answer

issue with Paperclip and Capistrano

I have deployed a Rails 5 app on a Ubuntu 16.04 server. There is however a problem with the Paperclip configuration. I'm using the Figaro gem to store my environment variables. My paperclip configuration looks like…
Toontje
  • 1,415
  • 4
  • 25
  • 43
0
votes
1 answer

Rails - Figaro gem - how can I add a collaborator to my repo without sharing application.yml variables

I am using rails 5 with figaro gem to manage my environment variables. I have just started working with a coding coach, who is setting up my repo on his system. Is there a way for me to share my repo (so that he can configure it) without giving him…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

How to store environment variables with Figaro on a non Heroku server?

I have a Rails 5 app, and I'm trying to store my environment variables on a non Heroku server. Therefore I created a config/application.yml file with my environment variables on the production server. However, when I try to deploy my Rails app, the…
Toontje
  • 1,415
  • 4
  • 25
  • 43
0
votes
1 answer

set rails fog gem application.yml keys for development environment

I'm using paperclip, fog, figaro gems to upload images to amazon S3. In production works fine as I introduced the env variables in heroku by hand. But in development, it is suposed to use the env from the aplication.yml file (added to .gitignore).…
user6945851
  • 175
  • 1
  • 11
0
votes
1 answer

How to get application.yaml file after cloning repository

I have computer A and computer B. I have created an application.yaml file in a Rails application using the Figaro gem on computer A. Then, I cloned the repository from computer B into my local environment and noticed I am missing the…
Ctpelnar1988
  • 1,235
  • 3
  • 15
  • 38
0
votes
1 answer

Proper use of Figaro with Heroku (keys upcase/downcase appear twice)

I'm using Heroku, and when I display the config vars: === someapp-staging Config Vars DATABASE_URL: xxx LANG: en_US.UTF-8 NEW_RELIC_LICENSE_KEY: xxx NEW_RELIC_LOG: …
fro_oo
  • 1,610
  • 4
  • 24
  • 46
0
votes
0 answers

Stripe Connect in Production - "No application matches the supplied client identifier", RoR

I had Stripe Connect working in development / test environment, however I am having issues when pushing live to production, receiving the following JSON error: { error: { message: "No application matches the supplied client identifier" } } I am…
0
votes
1 answer

Rails 4, Mechanize, Figaro: environment variables not working in form

I'm attempting to log in to a website but my env variables are not inserting properly in the necessary form. I am using Figaro and my environment variables are safely stored in config/application.yml. I can confirm two things... When hard-coding my…