0
每當我嘗試生成與虛榮的報告,它會創建一個空的HTML文件如何通過虛榮生成報告?
>vanity report --output vanity.html
Vanity: loading experiments from ...
Vanity: loading metrics from ...
New report available in vanity.html
當瀏覽器
虛榮的緩存實驗是不同步的文件系統上的觀看和/或者數據存儲中的那些。請重新啓動您的服務器和/或打開收集。
我已經多次重新啓動服務器,並多次運行註冊過程。
>rails server
Vanity: loading experiments from C:/.../experiments
Vanity: loading metrics from C:/.../experiments/metrics
[2014-03-14 04:53:34] INFO WEBrick 1.3.1
我能夠加載實驗頁面並查看兩種顏色選項。我有track!
的代碼。
if @user.save(validate: false)
track! :register # Vanity
我甚至看到Redis的
redis 127.0.0.1:6379> keys *
1) "vanity:experiments:color_options:outcome"
2) "vanity:experiments:color_options:created_at"
3) "vanity:experiments:landing_page:alts:0:conversions"
4) "vanity:metrics:register:last_update_at"
5) "vanity:metrics:register:2014-03-14:value:0"
6) "scores"
7) "vanity:experiments:color_options:completed_at"
8) "vanity:experiments:color_options:alts:0:conversions"
10) "vanity:experiments:color_options:alts:1:conversions"
11) "vanity:experiments:color_options:alts:0:participants"
14) "vanity:experiments:color_options:alts:1:converted"
15) "vanity:experiments:color_options:alts:1:participants"
16) "vanity:experiments:landing_page:created_at"
值我什至增加model User
該指標,因爲它聲稱看現有的歷史數據。
metric "Registration" do
description "Measures how many people signed up for our awesome service."
model User
end
你在做什麼軌道環境? – phillbaker
Ruby 2.0.0,Rails 4.0.3。 – Chloe