首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku Javascript运行时错误

Heroku Javascript运行时错误
EN

Stack Overflow用户
提问于 2012-02-21 05:37:25
回答 1查看 440关注 0票数 1

从我的日志文件复制

ActionView::Template::Error (找不到JavaScript运行时。有关可用运行时的列表,请参阅https://github.com/sstephenson/execjs

我不打算使用execjs作为我的应用程序的运行时。我怎样才能避免这个问题?

在我的Gemfile中,我注释掉了以下两行,但没有效果:

代码语言:javascript
复制
# gem 'sass-rails',   '~> 3.2.3'
# gem 'coffee-rails', '~> 3.2.1'
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-03-18 23:52:02

在停止使用Heroku六个月后,我也遇到了同样的问题。原来我需要使用'cedar‘堆栈,并更改部署URL以使用新安装。在我的app目录中:

代码语言:javascript
复制
heroku create --stack cedar
git remote set-url heroku git@heroku.com:blooming-river-1759.git
git push heroku master

http://dsimard.posterous.com/assets-problems-with-heroku-and-rails-31

http://devcenter.heroku.com/articles/cedar

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9368776

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档