我如何在运行服务器中更新我的React项目

发布于 2025-01-30 02:33:27 字数 167 浏览 4 评论 0原文

我正在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人生百味 2025-02-06 02:33:27

这解决了问题,
首先替换您最近更改的内容。
用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 command sudo npm run build and then service apache2 restart and it worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文