Move deployment into promises