Developer forum

Forum » Templates » Deploying new item_types

Deploying new item_types

Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

Hello. 
I notice that when you deploy a new item_type (file based copy), without deploying database, then dynamicweb has no idea that there is a new one, and thus will not create the appropriate tables for said item_type. Is there a better way to solve this than having to create the item_type on the destination server? I know there are deployment tools in DW that can solve this issue, but I was thinking in the case that one is using a file based deployment approach such as a part of a CD pipeline.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Stephen

In the item types list, there is a refresh button that will create the table when you deploy new item types. Also if the site is rebooting, it will be picked up.

On DW10 you can trigger a refresh using the management API by doing a post to /admin/api/ItemTypeListReload - you can use the CLI in your CI/CD setup to run commands against the management api.

 
Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

ahh thanks!

 

You must be logged in to post in the forum