我如何在运行服务器中更新我的React项目
我正在VPS数字欧洲服务器上运行React应用程序。我和我的朋友正在做这个项目。他更新了一些代码,我用filezilla替换了这些更新的文件。更新后,我重新启动service apache2重新启动
apache服务器,但这些更改未显示该网页上。 有什么我缺少的吗?请帮忙,我是新来的,谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这解决了问题,
首先替换您最近更改的内容。
用filezilla替换内容后
我已经进入了项目文件
cd/var/www/html/project-react
然后运行此命令sudo npm run build build
service> service apache2 restart ,它对我有用。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 commandsudo npm run build
and thenservice apache2 restart
and it worked for me.