xaviershay / enki

A Ruby on Rails blogging app for the fashionable developer. It's better than Mephisto or SimpleLog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can not push to Heroku

AhmedNadar opened this issue · comments

I'm so new to Rails and want to have my blog based on Rails.
I trided to push to Heroku but got the following error.

➜ enki git:(myblog) ✗ git push heroku master
Counting objects: 11940, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5507/5507), done.
Writing objects: 100% (11940/11940), 10.90 MiB | 30 KiB/s, done.
Total 11940 (delta 5649), reused 11859 (delta 5596)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.2.0.pre
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Fetching gem metadata from https://rubygems.org/.......
Installing rake (0.9.2.2)
Installing RedCloth (4.2.9) with native extensions
Installing aaronh-chronic (0.3.9)
Installing i18n (0.6.0)
Installing multi_json (1.0.4)
Installing activesupport (3.2.6)
Installing builder (3.0.0)
Installing activemodel (3.2.6)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.1)
Installing rack-cache (1.2)
Installing rack-test (0.6.1)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.1.3)
Installing actionpack (3.2.6)
Installing mime-types (1.18)
Installing polyglot (0.3.3)
Installing treetop (1.4.10)
Installing mail (2.4.4)
Installing actionmailer (3.2.6)
Installing arel (3.0.2)
Installing tzinfo (0.3.33)
Installing activerecord (3.2.6)
Installing activeresource (3.2.6)
Installing coderay (1.0.5)
Installing exception_notification (2.5.2)
Installing formtastic (2.2.1)
Installing rack-ssl (1.3.2)
Installing json (1.7.3) with native extensions
Installing rdoc (3.12)
Installing thor (0.15.2)
Installing railties (3.2.6)
Installing jquery-rails (2.0.0)
Installing lesstile (1.0.1)
Installing ruby-openid (2.1.8)
Installing rack-openid (1.3.1)
Installing open_id_authentication (1.1.0)
Using bundler (1.2.0.pre)
Installing rails (3.2.6)
Installing sass (3.1.12)
Installing sass-rails (3.2.3)
Installing sqlite3 (1.3.5) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
--enable-local
--disable-local
Gem files will remain installed in /tmp/build_36qpjnifzkajm/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.5 for inspection.
Results logged to /tmp/build_36qpjnifzkajm/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.5/ext/sqlite3/gem_make.out
An error occurred while installing sqlite3 (1.3.5), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.3.5' succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:freezing-window-5669.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:freezing-window-5669.git'
➜ enki git:(myblog) ✗

What i am missing, how can i solve it?
Thanks...

Can you provide more details of all steps with what should i do to have my blog pushed to Heroku.
Thanks.

You can't use the sqlite gem on heroku, it doesn't make sense. You need to use pg instead. See the heroku docs for deploying a rails app, and also https://github.com/xaviershay/rhnh for an example.