support not rails app for determining environment