Skip to content

Instantly share code, notes, and snippets.

@Jesterovskiy
Created July 1, 2020 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jesterovskiy/14df6aa9d1a1bd055eaeb253d9e9bea3 to your computer and use it in GitHub Desktop.
Save Jesterovskiy/14df6aa9d1a1bd055eaeb253d9e9bea3 to your computer and use it in GitHub Desktop.
STAGE = (ENV['STAGE'] || 'development').freeze
RACK_ENV = (ENV['RACK_ENV'] || 'development').freeze
ROOT_PATH = Pathname(__FILE__).parent.dirname.realpath
Dotenv.load(File.expand_path("#{ROOT_PATH}/.env.#{RACK_ENV}", __FILE__))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment