New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug during deploy [assets:precompile] #895

Merged
merged 1 commit into from May 29, 2015

Conversation

Projects
None yet
3 participants
@mgrachev
Contributor

mgrachev commented May 29, 2015

Hi. During deployment Errbit I get the following error:

INFO [0a491011] Running ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile as deploy@server.dev
DEBUG [0a491011] Command: cd /home/deploy/errbit/releases/20150529161719 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 RAILS_ENV=production ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
DEBUG [0a491011]        rake aborted!
DEBUG [0a491011]        ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/coffee-script-2.3.0/lib/coffee_script.rb:1:in `<top (required)>'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/coffee-script-2.3.0/lib/coffee-script.rb:1:in `<top (required)>'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
DEBUG [0a491011]
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
DEBUG [0a491011]        /home/deploy/errbit/shared/bundle/ruby/2.2.0/gems/coffee-rails-4.1.0/lib/coffee-rails.rb:1:in `<top (required)>'
DEBUG [0a491011]        /home/deploy/errbit/releases/20150529161719/config/application.rb:10:in `<top (required)>'
DEBUG [0a491011]        /home/deploy/errbit/releases/20150529161719/Rakefile:4:in `require'
DEBUG [0a491011]        /home/deploy/errbit/releases/20150529161719/Rakefile:4:in `<top (required)>'
DEBUG [0a491011]        (See full trace by running task with --trace)

To fix this, need to add gem therubyracer into Gemfile.

@coveralls

This comment has been minimized.

coveralls commented May 29, 2015

Coverage Status

Coverage remained the same at 93.6% when pulling 1e95960 on mgrachev:master into 05cda19 on errbit:master.

1 similar comment
@coveralls

This comment has been minimized.

coveralls commented May 29, 2015

Coverage Status

Coverage remained the same at 93.6% when pulling 1e95960 on mgrachev:master into 05cda19 on errbit:master.

@stevecrozz

This comment has been minimized.

Member

stevecrozz commented May 29, 2015

I see coffee-rails in the stack trace which seems odd. I wonder if it would be a better idea to just remove that as we're not using coffeescript...

@stevecrozz

This comment has been minimized.

Member

stevecrozz commented May 29, 2015

I guess this is still needed to run uglifier in cases where you have no other javascript runtime. Thanks.

stevecrozz added a commit that referenced this pull request May 29, 2015

Merge pull request #895 from mgrachev/master
Fix a bug during deploy [assets:precompile]

@stevecrozz stevecrozz merged commit 998a698 into errbit:master May 29, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment