deploy template