{"id":7328,"date":"2014-06-07T02:25:39","date_gmt":"2014-06-07T02:25:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/how-to-push-heroku-master-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:25:39","modified_gmt":"2014-06-07T02:25:39","slug":"how-to-push-heroku-master-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/how-to-push-heroku-master-collection-of-common-programming-errors\/","title":{"rendered":"how to push heroku master?-Collection of common programming errors"},"content":{"rendered":"<p>I tried to push and i see:<\/p>\n<pre><code>rusik@rusik-K50AF:~\/work\/ruby\/blog3$ git push heroku master Counting\nobjects: 119, done. Delta compression using up to 2 threads.\nCompressing objects: 100% (105\/105), done. Writing objects: 100%\n(119\/119), 31.46 KiB, done. Total 119 (delta 16), reused 0 (delta 0)\n\n-----&gt; Heroku receiving push\n-----&gt; Ruby\/Rails app detected\n-----&gt; Detected Rails is not set to serve static_assets\n       Installing rails3_serve_static_assets... done\n-----&gt; Configure Rails 3 to disable x-sendfile\n       Installing rails3_disable_x_sendfile... done\n-----&gt; Configure Rails to log to stdout\n       Installing rails_log_stdout... done\n-----&gt; Gemfile detected, running Bundler version 1.0.7\n       Unresolved dependencies detected; Installing...\n       Using --without development:test\n       Fetching source index for http:\/\/rubygems.org\/\n       Installing rake (0.9.2.2) \n       Installing multi_json (1.0.3) \n       Installing activesupport (3.1.1) \n       Installing builder (3.0.0) \n       Installing i18n (0.6.0) \n       Installing activemodel (3.1.1) \n       Installing erubis (2.7.0) \n       Installing rack (1.3.5) \n       Installing rack-cache (1.1) \n       Installing rack-mount (0.8.3) \n       Installing rack-test (0.6.1) \n       Installing hike (1.2.1) \n       Installing tilt (1.3.3) \n       Installing sprockets (2.0.3) \n       Installing actionpack (3.1.1) \n       Installing mime-types (1.17.2) \n       Installing polyglot (0.3.3) \n       Installing treetop (1.4.10) \n       Installing mail (2.3.0) \n       Installing actionmailer (3.1.1) \n       Installing arel (2.2.1) \n       Installing tzinfo (0.3.31) \n       Installing activerecord (3.1.1) \n       Installing activeresource (3.1.1) \n       Installing coffee-script-source (1.1.3) \n       Installing execjs (1.2.9) \n       Installing coffee-script (2.2.0) \n       Installing rack-ssl (1.3.2) \n       Installing json (1.6.1) with native extensions \n       Installing rdoc (3.11) \n       Installing thor (0.14.6) \n       Installing railties (3.1.1) \n       Installing coffee-rails (3.1.1) \n       \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/specification.rb:519:in `normalize_yaml_input': invalid byte sequence in US-ASCII (Argumen\ntError)\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/specification.rb:479:in\n`from_yaml'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_input.rb:183:in\n`load_gemspec'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_input.rb:51:in\n`block in initialize'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_reader.rb:64:in\n`block in each'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_reader.rb:55:in\n`loop'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_reader.rb:55:in\n`each'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_input.rb:32:in\n`initialize'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_input.rb:17:in\n`new'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package\/tar_input.rb:17:in\n`open'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/package.rb:58:in `open'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/format.rb:63:in `from_io'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/format.rb:51:in `block in from_file_by_path'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/open-uri.rb:35:in `open'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/open-uri.rb:35:in `open'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/1.9.1\/rubygems\/format.rb:50:in `from_file_by_path'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/source.rb:72:in `fetch'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/installer.rb:45:in\n`block in run'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/spec_set.rb:12:in\n`block in each'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/spec_set.rb:12:in\n`each'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/spec_set.rb:12:in\n`each'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/installer.rb:44:in\n`run'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/installer.rb:8:in\n`install'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/cli.rb:225:in `install'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/vendor\/thor\/task.rb:22:in\n`run'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/vendor\/thor\/invocation.rb:118:in\n`invoke_task'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/vendor\/thor.rb:246:in\n`dispatch'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/lib\/bundler\/vendor\/thor\/base.rb:389:in\n`start'\n        from \/usr\/ruby1.9.2\/lib\/ruby\/gems\/1.9.1\/gems\/bundler-1.0.7\/bin\/bundle:13:in\n`'\n        from \/usr\/ruby1.9.2\/bin\/bundle:19:in `load'\n        from \/usr\/ruby1.9.2\/bin\/bundle:19:in `'\n       FAILED: http:\/\/devcenter.heroku.com\/articles\/bundler  !     Heroku push rejected, failed to install gems via Bundler\n\nTo git@heroku.com:furious-river-2242.git  ! [remote rejected] master\n-&gt; master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:furious-river-2242.git'\n<\/code><\/pre>\n<p>So , of&#8217;course it looks like this I changed db in gemfile to pg + bundle install and there are no mistakes after bundler. but i see it again . this is my gemfile<\/p>\n<pre><code>source 'http:\/\/rubygems.org'\n\ngem 'rails', '3.1.1'\n\n# Bundle edge Rails instead:\n# gem 'rails',     :git =&gt; 'git:\/\/github.com\/rails\/rails.git'\n\n#gem 'sqlite3'\n\n\n# Gems used only for assets and not required\n# in production environments by default.\ngroup :assets do\n  gem 'sass-rails',   '~&gt; 3.1.4'\n  gem 'coffee-rails', '~&gt; 3.1.1'\n  gem 'uglifier', '&gt;= 1.0.3'\nend\n\ngem 'jquery-rails'\n\ngroup :production, :staging do\n  #gem \"mysql2\"\n  #gem 'sqlite3-ruby', :require =&gt; 'sqlite3'\n  gem \"pg\"\nend\n\ngroup :development, :test do\n  gem \"pg\"\n  #gem \"sqlite3-ruby\", :require =&gt; \"sqlite3\"\nend\n\n#gem 'ruby-xslt'\n\n# To use ActiveModel has_secure_password\n# gem 'bcrypt-ruby', '~&gt; 3.0.0'\n\n# Use unicorn as the web server\n# gem 'unicorn'\n\n# Deploy with Capistrano\n# gem 'capistrano'\n\n# To use debugger\n# gem 'ruby-debug19', :require =&gt; 'ruby-debug'\n\ngroup :test do\n  # Pretty printed test output\n  gem 'turn', :require =&gt; false\nend\n<\/code><\/pre>\n<p>why?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I tried to push and i see: rusik@rusik-K50AF:~\/work\/ruby\/blog3$ git push heroku master Counting objects: 119, done. Delta compression using up to 2 threads. Compressing objects: 100% (105\/105), done. Writing objects: 100% (119\/119), 31.46 KiB, done. Total 119 (delta 16), reused 0 (delta 0) &#8212;&#8211;&gt; Heroku receiving push &#8212;&#8211;&gt; Ruby\/Rails app detected &#8212;&#8211;&gt; Detected Rails is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7328","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7328"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7328\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}