How can i trigger rebuild while hosting Gatsby Ghost build on my own ubuntu server?

It’s configured with nginx. Also i’ve got ghost 3 itself hosting in there.