资产:预编译太冗长

发布于 2024-12-09 00:14:31 字数 846 浏览 0 评论 0原文

我是 JRuby 和 Rails 的新手。当我预编译我的资产时,它会用我不感兴趣的垃圾填充我的日志。

(在 /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319 中) mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers

我已经尝试过 --quiet,我已经关闭了注销。

有什么想法吗?

谢谢!

I am new to JRuby and Rails. When I precompile my assets it fills my logs with junk that I am not interested in.

(in /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319)
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers
mkdir -p /srv/test/releases/cba9797f510b211ff3568c9bb800ee7a7366c319/public/assets/controllers

I have tried --quiet, i have turned logging off.

Any ideas?

Thanks!

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

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

发布评论

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

评论(1

东北女汉子 2024-12-16 00:14:31

您可能需要考虑两个主要的输出抑制器选项。

不要将消息记录到标准输出。

-q, --quiet     

还抑制“目录中”公告。

-s, --silent

静默可能是您正在寻找的选项。您可以通过添加 --help 选项来查看大多数 rake 任务的所有选项。例如:

rake assets:precompile --help

希望这有帮助。有关预编译资源的更多信息,请参阅这篇文章

There are two main output suppressor options that you might want to consider.

Do not log messages to standard output.

-q, --quiet     

Also suppresses the 'in directory' announcement.

-s, --silent

Silent is probably the option you were looking for. You can view all the options for most rake tasks by adding the --help option. For example:

rake assets:precompile --help

Hope this helps. For more info on precompiling assets see this post.

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