Correct order of deploy script