[JY] Bring back function to use config object to do remote deployment