try running set rails env before stage as well.