Hi Foreman Dev
We have implemented expire hosts foreman plugin which has some javascripts.
When i use //= require ./core in javascript file it is giving following
error
Warning!Could not find a JavaScript runtime. See
https://github.com/sstephenson/execjs for a list of available runtimes. (in
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_expire_hosts-1.0.0/app/assets/javascripts/bootstrap-datepicker/index.js)
how can i fix this error ?
Thanks in advance
Nagarjuna
Normally we compile assets like this in packages - if you're doing that,
look at something like foreman_docker's spec file for usage of
%foreman_precompile_plugin building on Foreman and its engine.rb.
If you're just installing the gem locally, I think you can then install
foreman-assets and run "foreman-rake assets:precompile" to rebuild them all.
···
On 21/04/15 07:07, Nagarjuna Rachaneni wrote:
> Hi Foreman Dev
>
> We have implemented expire hosts foreman plugin which has some
> javascripts. When i use //= require ./core in javascript file it is
> giving following error
>
>
>
>
>
> Warning!
>
> Could not find a JavaScript runtime. See
> https://github.com/sstephenson/execjs for a list of available runtimes.
> (in
> /opt/rh/ruby193/root/usr/share/gems/gems/foreman_expire_hosts-1.0.0/app/assets/javascripts/bootstrap-datepicker/index.js)
>
>
> how can i fix this error ?
–
Dominic Cleal
Red Hat Engineering