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

后端 未结 9 1407
甜味超标
甜味超标 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条回答
  •  -上瘾入骨i
    2021-01-30 04:42

    I'm in dreamhost shared server.

    I installed nodejs without using root/sudo. On the server:

    #download node js (check last version from web)
    $ wget http://nodejs.org/dist/v0.8.16/node-v0.8.16-linux-x86.tar.gz
    #untar
    $ tar xzf node-v0.8.16-linux-x86.tar.gz
    

    Finnaly add its path to the deploy.rb, adding the following line (some more paths are added in this case):

    default_environment["PATH"] = ":/home/myUser/soft/node-v0.8.16-linux-x86/bin:/home/myUser/.gems/bin:/usr/lib/ruby/gems/1.8/bin/:$PATH"
    

    You are done

提交回复
热议问题