Fix using environment variable for Rails