2012-10-26 22 views
0
[176.71.146.44] executing command 
** [out :: 176.71.146.44] ** Invoke assets:precompile (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute assets:precompile 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Invoke assets:precompile:all (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute assets:precompile:all 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Invoke assets:precompile:primary (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Invoke assets:environment (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute assets:environment 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Invoke environment (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute environment 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Invoke tmp:cache:clear (first_time) 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute tmp:cache:clear 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] ** Execute assets:precompile:primary 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] rake aborted! 
** [out :: 176.71.146.44] 
** [out :: 176.71.146.44] 'return' outside of function (line: 29773, col: 8, pos: 908864) 

任何人都知道這個錯誤?Rails預編譯裝配失敗,返回功能外

+0

你運行的命令是什麼? – robertp

+0

@heartcode:cap deploy – Rodrigo

回答

0

我還沒有看到那個錯誤,但是我的大多數asset:precompile錯誤最終都是特定資產中的問題。

當我有一個無法解釋的錯誤時,我開始一次嘗試一件事。如果您正在使用源代碼管理,您是否可以回滾到以前的更改?如果尚未檢入,則使用Git存儲,Perforce架構或類似方法。

這裏的人,從一個CoffeeScript的文件也有類似的編譯錯誤:http://youtrack.jetbrains.com/issue/RUBY-12178

希望有所幫助。