How to update frontend when content in Strapi is changed?

pm2 stop
pm2 delete
npm run build --clean
pm2 start ecosystem.config.js

above works for me