Wednesday, 15 April 2015

ruby on rails - Javascript runtime error when startup a unicorn process -



ruby on rails - Javascript runtime error when startup a unicorn process -

i'm trying startup unicorn process running this:

bundle exec unicorn_rails -p 8080

but keeps throwing error

could not find javascript runtime. see https://github.com/sstephenson/execjs list of available runtimes. (execjs::runtimeunavailable)

i installed therubyracer gem on server. app gems bundled vendor/cache. dont want include therubyracer in gemfile because app deployed capistrano , long installation chewed ssh connection time, killed half way through. suggestion on how resolve issue?thanks

execjs can invoke several different javascript runtimes.

if don't want utilize therubyracer, can install nodejs instead.

execjs can automaticly find nodejs command "node" if node located in $path.

ruby-on-rails ruby capistrano therubyracer

No comments:

Post a Comment