Open ghost opened 8 years ago
Hello @atteeela, Could you find out more details? I tried to compile my own assets in my projects with ruby 2.2.0 and it was done without any error. But I would like to re-produce this error to know what is a source of your issue.
This issue is caused by the nodejs dependency on the latest version of Ubuntu/Debian. This is because nodejs executable is now called /usr/bin/nodejs
rather than /usr/bin/node
and this gem is only looking for node
executable in the PATH
rather than nodejs
as well. You can fix this by sudo apt-get install nodejs-legacy
Hello,
This worked fine in Rails 4.2 and Ruby 2.1.4, but now I'm using Rails 4.2 and Ruby 2.2.0.
Any help on this problem is greatly appreciated.
Thank you,
Terminal result:
ubuntu@ip:~/app$ RAILS_ENV=production bundle exec rake assets:precompile fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git [DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead DEPRECATION WARNING: The configuration option
config.serve_static_assets
has been renamed toconfig.serve_static_files
to clarify its role (it merely enables serving everything in thepublic
folder and is unrelated to the asset pipeline). Theserve_static_assets
alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /home/ubuntu/app/config/environments/production.rb:24) rake aborted! NameError: uninitialized constant Typescript::Rails::Compiler /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/typescript-rails-0.6.2/lib/typescript/rails/template.rb:25:inevaluate' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/tilt-2.0.1/lib/tilt/template.rb:96:in
render' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/legacy_tilt_processor.rb:25:incall' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:in
call_processor' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:inblock in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
reverse_each' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:incall_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:in
load_from_unloaded' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:inblock in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:in
fetch_asset_from_dependency_cache' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:inload' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:in
block in initialize' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:inyield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:23:inblock in call' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/utils.rb:183:in
dfs' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/bundle.rb:24:incall' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:75:in
call_processor' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:57:inblock in call_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:in
reverse_each' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/processor_utils.rb:56:incall_processors' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:134:in
load_from_unloaded' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:60:inblock in load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:318:in
fetch_asset_from_dependency_cache' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/loader.rb:44:inload' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:20:in
block in initialize' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:inyield' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/cached_environment.rb:47:in
load' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:66:infind_asset' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/base.rb:73:in
find_all_linked_assets' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:130:inblock in find' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:in
each' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:129:infind' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/sprockets/manifest.rb:162:in
compile' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:70:inblock (3 levels) in define' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-3.4.0/lib/rake/sprocketstask.rb:147:in
with_logger' /home/ubuntu/.rvm/gems/ruby-2.2.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define' Tasks: TOP => assets:precompile (See full trace by running task with --trace)