资产:预编译太冗长
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要考虑两个主要的输出抑制器选项。
不要将消息记录到标准输出。
还抑制“目录中”公告。
静默可能是您正在寻找的选项。您可以通过添加 --help 选项来查看大多数 rake 任务的所有选项。例如:
希望这有帮助。有关预编译资源的更多信息,请参阅这篇文章。
There are two main output suppressor options that you might want to consider.
Do not log messages to standard output.
Also suppresses the 'in directory' announcement.
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:
Hope this helps. For more info on precompiling assets see this post.