在我的env.rb文件中,我有以下内容:
if ENV["HEADLESS"] == 'true'
require "headless"
@headless = Headless.new
@headless.start
end这在Ubuntu中工作得很好,但在OSX中就不行。浏览器仍会弹出。我需要做什么才能让它在OSX中工作?
发布于 2012-10-20 03:49:55
Headless不会隐藏大多数OSX应用程序。这是预期的行为。Headless意味着在Linux服务器上运行图形应用程序。
有关详细说明,请参阅https://github.com/leonid-shevtsov/headless/issues/31#issuecomment-8933108。
发布于 2012-09-17 21:57:11
据我所知,在OSX上默认的firefox安装并没有使用X11来渲染。It uses....cocoa?
Macports已经安装了,但我还没有试过。http://www.macports.org/ports.php?by=library&substr=firefox-x11
https://stackoverflow.com/questions/11595847
复制相似问题