Script to initialize rails environment