2012-07-19 54 views
0

在towerjs中將生產資產上傳到S3的正確方法是什麼? 我在配置/ credentials.coffee配置我的S3憑據如何將towerjs資產上傳到S3?

然後我嘗試蛋糕資產:發佈

,並得到

 /Users/avaranovich/projects/demos/node/firstApp/Cakefile:15 
    client = knox.createClient(Tower.secrets.s3); 
              ^
TypeError: Cannot read property 's3' of undefined 
    at Object._this [as action] (/Users/avaranovich/projects/demos/node/firstApp/Cakefile:15:45) 
    at helpers.extend.invoke (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:42:26) 
    at Object.action (/Users/avaranovich/projects/demos/node/firstApp/Cakefile:9:12) 
    at helpers.extend.invoke (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:42:26) 
    at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/cake.js:67:21) 
    at Object.<anonymous> (/usr/local/lib/node_modules/coffee-script/bin/cake:7:38) 
    at Module._compile (module.js:449:26) 
    at Object.Module._extensions..js (module.js:467:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 

更新:我想通了,在右行任務資產:上傳:s3應該看起來 client = knox.createClient Tower.config.credentials.s3

但後來我得到另一個錯誤

/Users/avaranovich/projects/demos/node/firstApp/node_modules/tower/lib/tower/server/application/assets.js:112 
    _console.debug("Uploading to " + Tower.secrets.s3.bucket); 
               ^
TypeError: Cannot read property 's3' of undefined 
    at Object.Tower.Application.Assets.upload (/Users/avaranovich/projects/demos/node/firstApp/node_modules/tower/lib/tower/server/application/assets.js:112:51) 
    at Object._this [as action] (/Users/avaranovich/projects/demos/node/firstApp/Cakefile:16:37) 

似乎像其他地方硬編碼Tower.secrets.s3.bucket。

感謝, 安德烈

回答

2

我會耐心等待,密切關注開發分支,甚至開始推動其要求在自述中概述:https://github.com/viatropos/tower/tree/development

他們終於在一個「功能齊全」與開發部門合作,現在正在努力支持它,以便解決錯誤並提高性能。

請留意每日快速變化的路線圖:https://github.com/viatropos/tower/blob/master/ROADMAP.md

在給開發者的數量有限,而驚人的速度移動!我們需要支持這個項目。

+0

添加了該帖子的路線圖。讓我印象深刻的是,幾乎每天或每隔幾天都會看到更新,這些更新確實將推動我們實現.5版本,這是我們需要真正開始在更嚴重的層面上使用這個版本的重要版本。 – ylluminate 2012-10-12 04:41:37