Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

后端 未结 9 1416
甜味超标
甜味超标 2021-01-30 03:58

My website has been broken since Dreamhost upgraded their servers a couple of weeks ago. I have been tearing my hair out trying to get it fixed and made some progress but am stu

9条回答
  •  醉酒成梦
    2021-01-30 04:38

    i use this gems on Dreamhost with Rails 3.1 for the Asset Pipeline

    group :assets do
      gem 'execjs'
      gem 'therubyracer', :platforms => :ruby
      gem 'johnson'
      gem 'sass-rails', "  ~> 3.1.0"
      gem 'coffee-rails', "~> 3.1.0"
      gem 'uglifier'
    end
    

    therubyracer as precompiler, and johnson as runtime.

    This work for me in 2 Rails 3.1 apps hosted by Dreamhost.

提交回复
热议问题