2012-10-26 23 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

希望有所帮助。