2011-03-12 70 views
0

我無法讓Rails自動測試通知在Engine Yard Vagrant環境中工作。在Mac上,我通常通過咆哮獲得通知。但是,在運行Ubuntu的虛擬環境中無效。Ubuntu虛擬環境中的自動測試通知

我試圖運行Linux的通知設置,如libnotify +自動測試通知,但我得到了以下錯誤:

libnotify-Message: Unable to get session bus: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed. 
** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed 
** (notify-send:1004): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed 
** (notify-send:1004): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed 

的另一途徑是將有低吼遠程收到通知,但我甚至不知道從哪裏開始...

有什麼建議嗎?

回答

0

Web服務器將無法訪問桌面進行通知。出於安全原因,這通常是件好事。

在咆哮安裝程序dmg是一個程序growlnotify,它可以調整到建立在大多數posix-ish系統上,並可以發送遠程通知。您還必須將Growl配置爲接收遠程通知(系統慣性>其他>低吼>網絡)。