【问题标题】:spree 2.0.3 heroku error precompiling assets "Error: Out of stack space"spree 2.0.3 heroku 错误预编译资产“错误:堆栈空间不足”
【发布时间】:2013-08-10 17:47:13
【问题描述】:

我正在尝试在 Heroku 上创建一个基本的狂欢应用程序。我正在关注 http://railsapps.github.io/rails-heroku-tutorial.html 和大礼包 heroku 指南。

我已编辑 config/application.rb 以包含 config.assets.initialize_on_precompile = false 然后,因为我需要在推送到 Heroku 之前进行预编译,所以我卡在这里:


D:\code\foo>rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
d:/RailsInstaller/Ruby1.9.3/bin/ruby.exe d:/RailsInstaller/Ruby1.9.3/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Error: Out of stack space
  (in D:/code/foo/app/assets/javascripts/admin/all.js)
d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-.4.0/lib/execjs/external_runtime.rb:68:in `extract_result'
...much more...

all.js 资产与原始安装保持不变:

跑步

耙资产:清洁

在预编译之前为其他人解决了这个问题,但不是为我。

浏览它看起来这可能是特定于 Windows 的问题?如果重要的话,我使用的是 railsinstaller,并且我在相当新的笔记本电脑上运行 Windows 7。

【问题讨论】:

    标签: ruby-on-rails heroku spree


    【解决方案1】:

    然后,因为我需要在推送到 Heroku 之前进行预编译

    这是错误的。默认情况下,当您推送到 Heroku 时,Heroku 的 Cedar 堆栈会在 slug 编译期间编译您的资产。

    欲了解更多信息,请参阅:https://devcenter.heroku.com/articles/rails-asset-pipeline

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-20
      • 2017-11-14
      • 1970-01-01
      相关资源
      最近更新 更多