setup rails for deployment