0

I am trying to set up the configuration in preparation for following Daniel Kehoe's learn-rails tutorial book, but I am having trouble setting up the environment variables. The book seems to explain how to do it on Mac and Atom but not with cloud9. I am supposed to put the environment variables into a file called ".bashrc" but I don't know where to find this file as it is hidden.

Owen
  • 361
  • 1
  • 5
  • 16

1 Answers1

1

You will find it on the left side Workspace->Setting Icon->Show Hidden Files, You can click on the left side upper right then click it then it will show a list then you can click Show Hidden Files

See the attached images

enter image description here

then below of the left side tree

enter image description here

Or you can use Figaro gem for the environment variable.

Add Figaro to your Gemfile and bundle install:

gem "figaro"

Figaro installation is easy:

bundle exec figaro install

This creates a commented config/application.yml file. Add your own configuration to this file and you're done!

Example

# config/application.yml

SENDGRID_USERNAME: "appxxxxxx@heroku.com"
SENDGRID_PASSWORD: "$xxxxxxxxxxxxx@"

Hope it helps

fool-dev
  • 7,671
  • 9
  • 40
  • 54
  • is there also a way to find this file through Atom text editor if i am developing off line? i seem to have the same problem of not being able to find the file there also. – Owen Mar 05 '18 at 14:36
  • If you use `figaro gem` then it will work for online offline, everywhere, for the repository you need edit `.gitignore` file to permit transfer file – fool-dev Mar 05 '18 at 16:24