How I can update my react project in a running server

Issue

I am running a react application on a VPS digital-ocean server. My friend and I are doing this project. He updated some code and I replaced those updated files with FileZilla. After updating, I restarted service apache2 restart the apache server but those changes are not showing on that webpage.
Is there anything I am missing? Please help, I am new and Thanks.

Solution

This solved the problem,
First Replace Your Content that you have changed recently.
After replacing content with FileZilla
I have gone into my project file cd /var/www/html/project-react then run this command sudo npm run build and then service apache2 restart and it worked for me.

Answered By – Mohammad Fathi Rahman

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published