Set application environment when running via passenger.