所以我创建了一个Rails 4应用程序,并且能够在第一次正确地将它推送到Heroku上游。从那以后,我一直没有经常推动我的改变。我刚刚到达一个非常重要的检查点,并决定尝试将更改推送到heroku上的实际站点,但它拒绝了我的请求,说它未能编译我的Ruby应用程序。我复制并粘贴了我的命令行提供给我的一些反馈,希望有人遇到类似的错误,并且可以给我一些关于可能出错的想法。提前致谢。在Heroku上部署轨道4的应用程序时出现Heroku拒绝我的git推送请求
Running: rake assets:precompile
rake aborted!
ExecJS::ProgramError: Unexpected token name «users», expected punc «,» (line: 11341, col: 35, pos: 318042)
Error
at new JS_Parse_Error (/tmp/execjs20140625-619-93tzcv.js:2357:10754)
at js_error (/tmp/execjs20140625-619-93tzcv.js:2357:10973)
at croak (/tmp/execjs20140625-619-93tzcv.js:2357:19198)
at token_error (/tmp/execjs20140625-619-93tzcv.js:2357:19335)
at expect_token (/tmp/execjs20140625-619-93tzcv.js:2357:19558)
at expect (/tmp/execjs20140625-619-93tzcv.js:2357:19696)
at expr_list (/tmp/execjs20140625-619-93tzcv.js:2357:27763)
at /tmp/execjs20140625-619-93tzcv.js:2357:29817
at /tmp/execjs20140625-619-93tzcv.js:2357:27576
at /tmp/execjs20140625-619-93tzcv.js:2357:30108
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To [email protected]:picritique.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:picritique.git'
这实际工作。我忘了这个窍门。非常感谢Hernan。 – user3324987
很多帖子都说'rake assets:precompile',但没有提到'git add'所以这就是缺少的东西! – Robert