title: Re-bundle on changes with Docker or PM2
body: <p>So I've deployed an app to a remote server. The app is quite large, so I've made some production configs for bundling the client files with webpack.</p>
  
  <p>Currently I'm running the server with docker-compose, and in the server-container I'm running pm2-docker (as there are some workers that needs to be run).</p>
  
  <p>To bundle the client, I'm just using a command like <code>npm run build</code>, so I'm wondering how I could rebuild the client whenever I push changes to the remote server.</p>
  
  <p>To duck it down: whenever there is changes, do <code>npm run build</code></p>
  
  <p>What would be the best way to do this? Are you able to run some kind of command specified in the PM2-.yml-file or in the docker-compose .yml-file?</p>
  
  <p>Thankful for any help!</p>