Ruby on rails 下拉切换不适用于heroku。不知道为什么

Ruby on rails 下拉切换不适用于heroku。不知道为什么,ruby-on-rails,twitter-bootstrap,caching,heroku,asset-pipeline,Ruby On Rails,Twitter Bootstrap,Caching,Heroku,Asset Pipeline,我面临一个问题,即下拉菜单和flash[:notices]对点击没有响应。在这里尝试了解决方案和它的其他变体。i、 移动需要引导,但不起作用 然而,当我尝试运行rake资产时:在本地和heroku应用程序中重置。rake被中止,原因是不知道如何构建任务“资产:重置” 然后我在本地给了precompile一个快照,但没有响应,然后我尝试为heroku做这个,得到下面的错误 ChickenSmitten:fundspace shengyeong$ heroku run rake assets:res

我面临一个问题,即下拉菜单和flash[:notices]对点击没有响应。在这里尝试了解决方案和它的其他变体。i、 移动需要引导,但不起作用

然而,当我尝试运行rake资产时:在本地和heroku应用程序中重置。rake被中止,原因是不知道如何构建任务“资产:重置”

然后我在本地给了precompile一个快照,但没有响应,然后我尝试为heroku做这个,得到下面的错误

ChickenSmitten:fundspace shengyeong$ heroku run rake assets:reset --app fundspace-session-staging
Running `rake assets:reset` attached to terminal... up, run.4723
rake aborted!
Don't know how to build task 'assets:reset'

(See full trace by running task with --trace)
ChickenSmitten:fundspace shengyeong$ heroku run rake assets:precompile --app fundspace-session-staging
Running `rake assets:precompile` attached to terminal... up, run.6653
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /app/config/environments/staging.rb:23)
I, [2015-01-16T01:54:48.053698 #3]  INFO -- : Writing /app/public/assets/header-bg-cd982ce270a498410ab553c88745e3ed.jpg
rake aborted!
ExecJS::ProgramError: Unexpected token: punc ({) (line: 15915, col: 8, pos: 458835)

Error
    at new JS_Parse_Error (/tmp/execjs20150116-3-vcxs4ojs:2359:10623)
    at js_error (/tmp/execjs20150116-3-vcxs4ojs:2359:10842)
    at croak (/tmp/execjs20150116-3-vcxs4ojs:2359:19086)
    at token_error (/tmp/execjs20150116-3-vcxs4ojs:2359:19223)
    at unexpected (/tmp/execjs20150116-3-vcxs4ojs:2359:19311)
    at semicolon (/tmp/execjs20150116-3-vcxs4ojs:2359:19784)
    at simple_statement (/tmp/execjs20150116-3-vcxs4ojs:2359:22580)
    at /tmp/execjs20150116-3-vcxs4ojs:2359:20553
    at /tmp/execjs20150116-3-vcxs4ojs:2359:19957
    at /tmp/execjs20150116-3-vcxs4ojs:2359:31968
    at Object.parse (/tmp/execjs20150116-3-vcxs4ojs:2360:152)
    at print (/tmp/execjs20150116-3-vcxs4ojs:2632:24)
  (in /app/app/assets/javascripts/application.js)/app/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:64:in `extract_result'
/app/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:29:in `exec'
/app/vendor/bundle/ruby/2.0.0/gems/uglifier-2.6.1/lib/uglifier.rb:200:in `run_uglifyjs'
/app/vendor/bundle/ruby/2.0.0/gems/uglifier-2.6.1/lib/uglifier.rb:178:in `compile'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/uglifier_compressor.rb:25:in `evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in `block in evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/bundled_asset.rb:25:in `initialize'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `new'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `build_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:94:in `block in build_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:58:in `cache_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:93:in `build_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:287:in `find_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:61:in `find_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:211:in `block in find_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:257:in `benchmark'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:210:in `find_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:119:in `block in compile'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `each'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `compile'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/rake/sprocketstask.rb:146:in `with_logger'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
ChickenSmitten:fundspace shengyeong$ rake assets:reset
rake aborted!
Don't know how to build task 'assets:reset'
/Users/shengyeong/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
/Users/shengyeong/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
ChickenSmitten:fundspace shengyeong$heroku运行rake资产:重置--应用程序fundspace会话暂存
正在运行附加到终端的'rake assets:reset'。。。起来,跑
雷克流产了!
不知道如何构建任务“资产:重置”
(通过使用--trace运行任务查看完整跟踪)
ChickenSmitten:fundspace shengyeong$heroku run rake资产:预编译--应用程序fundspace会话暂存
正在运行附加到终端的“rake资产:预编译”。。。起来,跑
弃用警告:配置选项'config.service_static_assets'已重命名为'config.service_static_files',以明确其角色(它仅支持为'public'文件夹中的所有内容提供服务,与资产管道无关)。Rails 5.0中将删除'SERVICE_static_assets'别名。请相应地迁移配置文件。(从/app/config/environments/staging.rb:23中的块调用)
一、 [2015-01-16T01:54:48.053698#3]信息--:Writing/app/public/assets/header-bg-cd982ce270a498410ab553c88745e3ed.jpg
雷克流产了!
ExecJS::ProgramError:意外标记:punc({)(行:15915,列:8,位置:458835)
错误
新的JS_解析_错误(/tmp/execjs20150116-3-vcxs4ojs:2359:10623)
at js_错误(/tmp/execjs20150116-3-vcxs4ojs:2359:10842)
在croak(/tmp/execjs20150116-3-vcxs4ojs:2359:19086)
at token_错误(/tmp/execjs20150116-3-vcxs4ojs:2359:19223)
意外情况下(/tmp/execjs20150116-3-vcxs4ojs:2359:19311)
分号(/tmp/execjs20150116-3-vcxs4ojs:2359:19784)
在simple_语句中(/tmp/execjs20150116-3-vcxs4ojs:2359:22580)
at/tmp/execjs20150116-3-vcxs4ojs:2359:20553
at/tmp/execjs20150116-3-vcxs4ojs:2359:19957
at/tmp/execjs20150116-3-vcxs4ojs:2359:31968
在Object.parse(/tmp/execjs20150116-3-vcxs4ojs:2360:152)
打印时(/tmp/execjs20150116-3-vcxs4ojs:2632:24)
(in/app/app/assets/javascripts/application.js)/app/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:64:in'extract_result'
/app/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:29:in'exec'
/app/vendor/bundle/ruby/2.0.0/gems/uglifier-2.6.1/lib/uglifier.rb:200:in'run_uglifyjs'
/app/vendor/bundle/ruby/2.0.0/gems/uglifier-2.6.1/lib/uglifier.rb:178:在“编译”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/uglifier_compressor.rb:25:in'evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in'render'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in'block in evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in'each'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in'evaluate'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/bundled_asset.rb:25:in'initialize'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in'new'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:内置资产
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:94:in“block in build_asset”
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:58:in'cache_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:93:内置资产
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:287:在“查找资产”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:61:in'find_asset'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:211:在“查找资产中的块”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:257:in'benchmark'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:210:在“查找资产”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:119:“编译中的块”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in'each'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:在“编译”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:70:在“定义中的块(3个级别)”中
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/rake/sprocketstask.rb:146:in'with_logger'
/app/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:69:在“定义中的块(2个级别)”中
任务:TOP=>资产:预编译
(通过使用--trace运行任务查看完整跟踪)
ChickenSmitten:fundspace shengyeong$rake资产:重置
雷克流产了!
不知道如何构建任务“资产:重置”
/Users/shengyeong/.rvm/gems/ruby-2.1.3/bin/ruby\u可执行文件挂钩:15:in'eval'
/Users/shengyeong/.rvm/gems/ruby-2.1.3/bin/ruby\u可执行文件\u挂钩:15:in`'
(通过使用--trace运行任务查看完整跟踪)
当我挖掘更多的信息,如通过这,我意识到这是一个陌生的领域。需要建议


谢谢。

bundle exec rake资产:预编译

解决了我的问题