I want to be able to set global variables depending on the environment. I want to something like this://config.json if (ENV === "DEVELOPMENT" ) { ENV["API_KEY"] = localGitIgnoredFile["API_KEY"]; } else if (ENV == "PRODUCTION =") { ENV["API_KEY] = herokuEnviorment["API_KEY"]; } I don't know where to begin with this (I'm a Rails guy). Please help. I've just been using a local version of my app and I really need to upload to github and then heroku.
Submitted January 30, 2017 at 06:13AM by pm_me_gold_plz
No comments:
Post a Comment