Set rack and rails environment