我可以在生产中删除哪些文件

发布于 2024-10-02 21:04:03 字数 72 浏览 0 评论 0原文

我正在托管上部署我的 Rails 项目。

我可以从 Rails 项目中安全地删除哪些仅在开发中需要的文件夹和文件?

I'm deploying my Rails project on a hosting.

What folders and files can i safely remove from Rails project, that needed only in development ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

远昼 2024-10-09 21:04:03

据我所知,我们可以删除文档和测试文件夹,因为它们没有在生产环境中使用。

As far as i know we can remove the documentation and test folders as they were not being used in production environment.

瀞厅☆埖开 2024-10-09 21:04:03

spec, test, doc, log(只删除log的内容,不删除文件夹本身)

spec, test, doc, log (only delete the contents of log, not the folder itself)

蓝颜夕 2024-10-09 21:04:03

基本上,您可以删除 .gitignore 文件中存在的任何文件。

例如,可以删除 log、tmp 文件夹中存在的文件。等等。

您会惊讶地发现这些日志文件保存着什么样的内存。

Basically, you can remove whatever files are present inside the .gitignore file.

For eg, Files that are present inside the log, tmp folders can be removed. etc.

You'll be amazed to know what kind of memory these log files are keeping.

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