Created
February 19, 2013 06:15
-
-
Save akhilstanis/4983513 to your computer and use it in GitHub Desktop.
Snippet: Rails - Load Rails Enviornment (Used by daemons which requires rails env)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['RAILS_ENV'] ||= "development" | |
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment