this is my first time working with sass files, its been relatively cool until i tried to deploy to heroku,i keep getting this error from my log on heroku, assets:precompile works perfectly in development but each time i try to deploy,it fails, am running on Rails 5 below is my error log
Error log
Running: rake assets:precompile
Yarn executable was not detected in the system.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:161:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:10:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:36:in `css_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:20:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/engine.rb:290:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_p
rocessors'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors
'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_depend
ency_cache'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in ini
tialize'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in log
ical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_direc
tory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote:
remote: Caused by:
remote: ArgumentError: wrong number of arguments (3 for 4)
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/functions.rb:752:in `rgba'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/funcall.rb:155:in `block in _perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:108:in `block in with_function'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:108:in `with_function'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/funcall.rb:153:in `_perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/node.rb:50:in `perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `block in _perfor
m'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `_perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/node.rb:50:in `perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:402:in `visit_prop'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `block in with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `block (2 levels) i
n visit_rule'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `block in visit_rul
e'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:183:in `with_environment'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:442:in `visit_rule'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `block in with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `block in visit_childre
n'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `visit_children'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:171:in `block in visit_chi
ldren'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:183:in `with_environment'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:170:in `visit_children'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:190:in `visit_root'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:161:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:10:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:36:in `css_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:20:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/engine.rb:290:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_p
rocessors'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors
'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_depend
ency_cache'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in ini
tialize'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in log
ical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_direc
tory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to project.
remote:
Gemfile
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
gem 'font-awesome-sass'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem 'jquery-rails'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development do
gem 'better_errors'
gem 'letter_opener'
end
gem 'friendly_id', '~> 5.1.0' #make the urls "friendly"
gem 'cancancan' #authorize access
gem 'rolify' #assign role to user
gem 'sendgrid'
gem 'pg_search'
gem 'sitemap_generator'
gem 'fog-aws'
gem 'figaro'
gem 'devise'
gem 'devise_invitable'
gem 'simple_form'
#gem 'client_side_validations', '~> 4.2.1'
gem 'bootstrap-sass', '~> 3.2.0'
gem 'will_paginate-bootstrap'
#gem 'will_paginate', '~> 3.1.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'
group :production do
gem 'rails_12factor'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'rspec-rails', '~> 3.7'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Seems RoR doesn't get as much attention on SO as before, anyways i was able to solve my problem by going through the log myself,for the sake of others am posting my answer i found a line that says
Caused by:
remote: ArgumentError: wrong number of arguments (3 for 4)
so i added null value (0) to the code rgba code on that line, i.e rgba(12, 184, 182,0), and voila !
Related
Getting error while trying to Deploy in heroku
remote: ------------------------------
remote: Bundle completed (48.81s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: Can't load WDM!
remote: !
remote: ! WDM is not supported on your system. For a cross-platform alternative,
remote: ! we recommend using Listen: http://github.com/guard/listen
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/lib/wdm.rb:4:in `rescue in <top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/lib/wdm.rb:1:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `each'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `block in require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `each'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler.rb:108:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/Rakefile:4:in `require_relative'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:17:in `load'
remote: ! vendor/bundle/bin/rake:17:in `<main>'
remote: !
remote: ! Caused by:
remote: ! LoadError: cannot load such file -- wdm_ext
From the description provided it seems like you have specified a wdm dependency since you were developing the application on windows but the same could not be found when deploying on heroku(unix system) .
Have you added the following in the Gemfile??
platforms :mswin do
gem "wdm"
end
If it is there in Gemfile then modify it to below mentioned:
platforms :mswin do
gem "wdm", :group => [:development]
end
Then add it to git and try deploying on heroku.
I tried to deploy my Rails application with Capistrano, and got the following error:
NoMethodError: undefined method `to_h' for nil:NilClass
Here is the stack trace, which looks like it may be a Sprockets issue, but I can't figure out why:
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:14:in `configuration_hash'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:40:in `configuration_hash'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:44:in `initialize'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:21:in `new'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:21:in `instance'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-es6-0.9.0/lib/sprockets/es6.rb:34:in `call'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:60:in `block in load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:44:in `load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `yield'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `default'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/bundle.rb:23:in `block in call'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/utils.rb:183:in `dfs'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/bundle.rb:24:in `call'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:60:in `block in load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/loader.rb:44:in `load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `yield'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `default'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `load'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/base.rb:66:in `find_asset'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:142:in `block in find'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:225:in `block in stat_tree'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:209:in `block in stat_directory'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `each'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `stat_directory'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:224:in `stat_tree'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:105:in `each'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:104:in `each'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:140:in `find'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:168:in `compile'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-3.5.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/var/www/paperless_office/shared/bundle/ruby/1.9.1/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
This is my local environment:
OSX 10.11.3
Ruby 2.1.3p242
Rails 4.1.0
Rake 10.3.2
Sprockets-Rails 2.3.3
Capistrano 3.4.0
This is my production environment:
Centos 5
ruby 2.1.3p242 (managed by rbenv)
My currently installed gems are:
bigdecimal (1.2.4)
bundler (1.11.2)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
test-unit (2.1.3.0)
I have been able to run:
gem install bundler
However, if I run:
gem install rails
I get:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Service Unavailable 503 (https://api.rubygems.org/api/v1/dependencies?gems=rack)
Is this is linked to my initial question?
For anyone coming across this, the problem was fixed thanks to the link posted by #DavidK-J which pointed me in the right direction. I needed to update the cap files with the settings for rbenv as follows:
Capfile
require 'capistrano/rbenv'
deploy.rb
set :rbenv_type, :system
set :rbenv_path, '~/.rbenv'
set :rbenv_ruby, "2.1.3"
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all
I then had to update passenger's config with the path to rbenv which in my case was:
~/.rbenv
HTH someone else.
Paul
-----> Ruby/Rack app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.0.pre.2
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
^[[C^[[D^[[D/app/slug-compiler/lib/utils.rb:66:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../../tmp/buildpacks/ruby/bin/compile /tmp/build_22uiq5k0q45sp /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=900.1076555252075 (Utils::TimeoutError)
from /app/slug-compiler/lib/utils.rb:52:in `loop'
from /app/slug-compiler/lib/utils.rb:52:in `block in spawn'
from /app/slug-compiler/lib/utils.rb:47:in `popen'
from /app/slug-compiler/lib/utils.rb:47:in `spawn'
from /app/slug-compiler/lib/buildpack.rb:37:in `block in compile'
from /app/slug-compiler/lib/buildpack.rb:35:in `fork'
from /app/slug-compiler/lib/buildpack.rb:35:in `compile'
from /app/slug-compiler/lib/slug.rb:497:in `block in run_buildpack'
from /app/slug-compiler/lib/utils.rb:121:in `log'
from /app/slug-compiler/lib/slug.rb:748:in `log'
from /app/slug-compiler/lib/slug.rb:496:in `run_buildpack'
from /app/slug-compiler/lib/slug.rb:125:in `block (2 levels) in compile'
from /app/slug-compiler/lib/utils.rb:102:in `block in timeout'
from /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
from /app/slug-compiler/lib/utils.rb:102:in `rescue in timeout'
from /app/slug-compiler/lib/utils.rb:97:in `timeout'
from /app/slug-compiler/lib/slug.rb:114:in `block in compile'
from /app/slug-compiler/lib/utils.rb:121:in `log'
from /app/slug-compiler/lib/slug.rb:748:in `log'
from /app/slug-compiler/lib/slug.rb:113:in `compile'
from /app/slug-compiler/bin/slugc:85:in `block in '
from /app/slug-compiler/lib/slug.rb:505:in `block in lock'
from /app/slug-compiler/lib/repo_lock.rb:44:in `call'
from /app/slug-compiler/lib/repo_lock.rb:44:in `run'
from /app/slug-compiler/lib/slug.rb:505:in `lock'
from /app/slug-compiler/bin/slugc:66:in `'
! Heroku push rejected, failed to compile Ruby/rack app
Here is my Gemfile:
source :rubygems
ruby '1.9.3'
gem 'sinatra', '1.3.3'
gem 'sinatra-contrib', '1.3.2'
gem 'thin', '1.5.0'
gem 'haml', '3.1.6'
gem 'bcrypt-ruby', '3.0.1'
gem 'mongo', '1.8.0'
gem 'bson_ext', '1.8.0'
gem 'mongoid', '3.0.16'
gem 'sinatra-flash', '0.3.0'
gem 'braintree', '2.22.0'
gem 'faye', '0.8.6'
#gem 'pony'
The error is gone when I change
gem 'braintree', '2.22.0'
to
gem 'braintree'
UPDATE: This answer doesn't work. The only option is to raise a support ticket.
There's a new feature that fixes this problem:
$ heroku config:set COMPILE_TIMEOUT=n
where n is a number in seconds. I used n=3000 (default is 900).
(note: you may need user-env-compile enabled to use this feature)
Update: Please read the comments on this answer for updated information!
For me the solution that I found was:
Push first half of my dependencies (half of the requirements.txt file)
Push all the requirements.txt file (including opencv dependency), this work because heroku keep in cached the first half, so then the second installation will go more fast
I have a Rails 3.2 app that I've created and want to deploy it on Heroku.
I created a new session on the cedar stack and pushed up my app to it.
However, when I try to migrate the DB I get deprecation warnings.
I ran the migrate commend with the --trace command and here's what it gave me:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant SimpleForm
/app/config/initializers/simple_form.rb:2:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:587:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:587:in `block in <class:Engine>'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `instance_exec'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `run_initializers'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:136:in `initialize!'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/app/config/environment.rb:5:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:103:in `require'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:103:in `require_environment!'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load'
/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>'
Tasks: TOP => db:migrate => environment
My app works fine locally.
Here's my gem file:
source 'https://rubygems.org'
gem 'rails', '3.2.2'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :production do
gem 'thin'
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', '~> 0.9.2'
gem 'bootstrap-sass'
gem 'uglifier', '>= 1.0.3'
gem 'twitter-bootstrap-rails', '2.0.2'
gem 'simple_form'
gem 'fog'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
move the simple_form gem outside your :assets group - mine is under the jquery-rails gem reference then make sure you run this command locally in your console before pushing to heroku:
RAILS_ENV=production bundle exec rake assets:precompile
hope that helps!
I am trying to deploy a project to Heroku.
The project has previously been successfully deployed, but now I get the following output when deploying:
[...]
Using rspec-expectations (2.8.0)
Using rspec-mocks (2.8.0)
Using rspec (2.8.0)
Using bundler (1.1.rc.7)
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
/app/slug-compiler/lib/utils.rb:62:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../buildpacks/ruby/bin/compile /tmp/build_465ucsomkafs /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=580.2929985523224 (Utils::TimeoutError)
from /app/slug-compiler/lib/utils.rb:48:in `loop'
from /app/slug-compiler/lib/utils.rb:48:in `block in spawn'
from /app/slug-compiler/lib/utils.rb:44:in `popen'
from /app/slug-compiler/lib/utils.rb:44:in `spawn'
from /app/slug-compiler/lib/buildpack.rb:35:in `block in compile'
from /app/slug-compiler/lib/buildpack.rb:33:in `fork'
from /app/slug-compiler/lib/buildpack.rb:33:in `compile'
from /app/slug-compiler/lib/slug.rb:464:in `block in run_buildpack'
from /app/slug-compiler/lib/utils.rb:117:in `log'
from /app/slug-compiler/lib/slug.rb:702:in `log'
from /app/slug-compiler/lib/slug.rb:463:in `run_buildpack'
from /app/slug-compiler/lib/slug.rb:107:in `block (2 levels) in compile'
from /app/slug-compiler/lib/utils.rb:98:in `block in timeout'
from /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
from /app/slug-compiler/lib/utils.rb:98:in `rescue in timeout'
from /app/slug-compiler/lib/utils.rb:93:in `timeout'
from /app/slug-compiler/lib/slug.rb:96:in `block in compile'
from /app/slug-compiler/lib/utils.rb:117:in `log'
from /app/slug-compiler/lib/slug.rb:702:in `log'
from /app/slug-compiler/lib/slug.rb:95:in `compile'
from /app/slug-compiler/bin/slugc:85:in `block in <main>'
from /app/slug-compiler/lib/slug.rb:472:in `block in lock'
from /app/slug-compiler/lib/repo_lock.rb:44:in `call'
from /app/slug-compiler/lib/repo_lock.rb:44:in `run'
from /app/slug-compiler/lib/slug.rb:472:in `lock'
from /app/slug-compiler/bin/slugc:66:in `<main>'
! Heroku push rejected, failed to compile Ruby app
We have pinpointed the line in Gemfile that causes this to be:
gem 'internal-lib', :git => 'https://username:password#github.com/Projectname/internal-lib'
When bundler installs the gem it looks alright:
Fetching https://username:password#github.com/Projectname/internal-lib
In what ways can a successfully bundled gem cause the "Cleaning up the bundler cache" step to timeout?
We have tried to include the gem in other ways, as a raw copy of the repo in vendor/private and as a git submodule in vendor/private but no success.
It seems like it was a problem with Heroku. Today the deploy worked again, without changes from our side...