add vm deploy to www directory function