Heroku problem ( git push heroku master ) ne radi

Heroku problem ( git push heroku master ) ne radi

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

Zdravo, nikako da proradi heroku
To https://git.heroku.com/stark-retreat-74450.git
! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to 'https://git.heroku.com/stark-retreat-74450.git'

Odradi cistu instalaciju app (rails) i kada pokusam da je prebacim na hiroku nista
Uputstvo sam pratio sa ovog linka https://devcenter.heroku.com/articles/git


git remote -v

heroku https://git.heroku.com/stark-retreat-74450.git (fetch)
heroku https://git.heroku.com/stark-retreat-74450.git (push)

Kada dodam komandu sve odradi
git push heroku master
.
,
,
deo koda na kraju

remote: Verifying deploy....
remote:
remote: ! Push rejected to stark-retreat-74450.
remote:
To https://git.heroku.com/stark-retreat-74450.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/stark-retreat-74450.git'

nema prebacivanja
Ima li neko isti problem ili kako da ovo resim ?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

Ovako izgleda
git push heroku master
Counting objects: 64, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (53/53), done.
Writing objects: 100% (64/64), 16.57 KiB | 0 bytes/s, done.
Total 64 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.4
remote: -----> Installing dependencies using bundler 1.11.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Fetching version metadata from https://rubygems.org/...
remote: Fetching dependency metadata from https://rubygems.org/..
remote: Installing json 1.8.3 with native extensions
remote: Installing rake 11.1.2
remote: Installing i18n 0.7.0
remote: Installing minitest 5.8.4
remote: Installing thread_safe 0.3.5
remote: Installing builder 3.2.2
remote: Installing erubis 2.7.0
remote: Installing mini_portile2 2.0.0
remote: Installing mime-types-data 3.2016.0221
remote: Installing rack 1.6.4
remote: Installing arel 6.0.3
remote: Installing coffee-script-source 1.10.0
remote: Installing execjs 2.6.0
remote: Installing thor 0.19.1
remote: Using bundler 1.11.2
remote: Installing concurrent-ruby 1.0.1
remote: Installing multi_json 1.11.2
remote: Installing sass 3.4.22
remote: Installing sqlite3 1.3.11 with native extensions
remote: Installing tilt 2.0.2
remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote: /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160408-322-15x41x.rb extconf.rb
remote: checking for sqlite3.h... no
remote: sqlite3.h is missing. Try 'port install sqlite3 +universal',
remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
remote: and check your shared library search path (the
remote: location where your sqlite3 shared library is located).
remote: *** extconf.rb failed ***
remote: Could not create Makefile due to some reason, probably lack of necessary
remote: libraries and/or headers. Check the mkmf.log file for more details. You may
remote: need configuration options.
remote: Provided configuration options:
remote: --with-opt-dir
remote: --without-opt-dir
remote: --with-opt-include
remote: --without-opt-include=${opt-dir}/include
remote: --with-opt-lib
remote: --without-opt-lib=${opt-dir}/lib
remote: --with-make-prog
remote: --without-make-prog
remote: --srcdir=.
remote: --curdir
remote: --ruby=/tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
remote: --with-sqlite3-dir
remote: --without-sqlite3-dir
remote: --with-sqlite3-include
remote: --without-sqlite3-include=${sqlite3-dir}/include
remote: --with-sqlite3-lib
remote: --without-sqlite3-lib=${sqlite3-dir}/lib
remote: extconf failed, exit code 1
remote: Gem files will remain installed in /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection.
remote: Results logged to /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out
remote: Installing tzinfo 1.2.2
remote: Installing rdoc 4.2.2
remote: Installing mime-types 3.0
remote: Installing nokogiri 1.6.7.2 with native extensions
remote: Installing rack-test 0.6.3
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 3.0.0
remote: Installing sprockets 3.6.0
remote: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
remote: continue.
remote: Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
remote: Bundler Output: Fetching gem metadata from https://rubygems.org/...........
remote: Fetching version metadata from https://rubygems.org/...
remote: Fetching dependency metadata from https://rubygems.org/..
remote: Installing json 1.8.3 with native extensions
remote: Installing rake 11.1.2
remote: Installing i18n 0.7.0
remote: Installing minitest 5.8.4
remote: Installing thread_safe 0.3.5
remote: Installing builder 3.2.2
remote: Installing erubis 2.7.0
remote: Installing mini_portile2 2.0.0
remote: Installing mime-types-data 3.2016.0221
remote: Installing rack 1.6.4
remote: Installing arel 6.0.3
remote: Installing coffee-script-source 1.10.0
remote: Installing execjs 2.6.0
remote: Installing thor 0.19.1
remote: Using bundler 1.11.2
remote: Installing concurrent-ruby 1.0.1
remote: Installing multi_json 1.11.2
remote: Installing sass 3.4.22
remote: Installing sqlite3 1.3.11 with native extensions
remote: Installing tilt 2.0.2
remote:
remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:
remote: /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160408-322-15x41x.rb extconf.rb
remote: checking for sqlite3.h... no
remote: sqlite3.h is missing. Try 'port install sqlite3 +universal',
remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
remote: and check your shared library search path (the
remote: location where your sqlite3 shared library is located).
remote: *** extconf.rb failed ***
remote: Could not create Makefile due to some reason, probably lack of necessary
remote: libraries and/or headers. Check the mkmf.log file for more details. You may
remote: need configuration options.
remote:
remote: Provided configuration options:
remote: --with-opt-dir
remote: --without-opt-dir
remote: --with-opt-include
remote: --without-opt-include=${opt-dir}/include
remote: --with-opt-lib
remote: --without-opt-lib=${opt-dir}/lib
remote: --with-make-prog
remote: --without-make-prog
remote: --srcdir=.
remote: --curdir
remote: --ruby=/tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
remote: --with-sqlite3-dir
remote: --without-sqlite3-dir
remote: --with-sqlite3-include
remote: --without-sqlite3-include=${sqlite3-dir}/include
remote: --with-sqlite3-lib
remote: --without-sqlite3-lib=${sqlite3-dir}/lib
remote:
remote: extconf failed, exit code 1
remote:
remote: Gem files will remain installed in /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection.
remote: Results logged to /tmp/build_7c69d20aa970fb6f56f1a241ec10fb9a/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out
remote: Installing tzinfo 1.2.2
remote: Installing rdoc 4.2.2
remote: Installing mime-types 3.0
remote: Installing nokogiri 1.6.7.2 with native extensions
remote: Installing rack-test 0.6.3
remote: Installing coffee-script 2.4.1
remote: Installing uglifier 3.0.0
remote: Installing sprockets 3.6.0
remote: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
remote: continue.
remote: Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Detected sqlite3 gem which is not supported on Heroku.
remote: ! https://devcenter.heroku.com/articles/sqlite3
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to stark-retreat-74450.
remote:
To https://git.heroku.com/stark-retreat-74450.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/stark-retreat-74450.git'



offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

Ovaj postupak radi

https://devcenter.heroku.com/articles/getting-started-with-ruby#introduction

offline
  • Pridružio: 11 Jul 2015
  • Poruke: 1321
  • Gde živiš: Univerzum br.8

pa tebi fali sqlite 3
" An error occurred while installing sqlite3 (1.3.11), and Bundler cannot continue"
instaliraj prvo sqllite3, pa probaj ponovo, čak ti daje sugestije šta da uradiš, samo čitaj izveštaj
"Try 'port install sqlite3 +universal',
remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' "
javi kako je prošlo

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

vinted ::pa tebi fali sqlite 3
" An error occurred while installing sqlite3 (1.3.11), and Bundler cannot continue"
instaliraj prvo sqllite3, pa probaj ponovo, čak ti daje sugestije šta da uradiš, samo čitaj izveštaj
"Try 'port install sqlite3 +universal',
remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' "
javi kako je prošlo


Hvala probacu, pratio sam iznad uputstvo od pocetka sada radi. Reci mi da li heroku moze da uploaduje slike vidim da kod mene nece, treba poseban gem da se instalira. Ovako jumbotron pozadina sa slikom ne radi niti bilo sta drugo

offline
  • Pridružio: 11 Jul 2015
  • Poruke: 1321
  • Gde živiš: Univerzum br.8

dejnik978 :: Reci mi da li heroku moze da uploaduje slike vidim da kod mene nece, treba poseban gem da se instalira. Ovako jumbotron pozadina sa slikom ne radi niti bilo sta drugo
ne koristim ga, tako da ne znam da ti dam odgovor.

offline
  • Pridružio: 25 Mar 2015
  • Poruke: 548

vinted ::dejnik978 :: Reci mi da li heroku moze da uploaduje slike vidim da kod mene nece, treba poseban gem da se instalira. Ovako jumbotron pozadina sa slikom ne radi niti bilo sta drugo
ne koristim ga, tako da ne znam da ti dam odgovor.


Da li nesto koristis nesto drugo i koje programske jezike podrzava taj free hosting ili je placen, hvala pozdrav

offline
  • Programer
  • Pridružio: 23 Maj 2012
  • Poruke: 4575

U Gemfile dodaj sledeće:

group :development do
   gem 'sqlite3'
end

group :production do
   gem 'pg'
   gem 'rails_12factor'
end


Tokom razvoja možeš da koristiš SQLite 3, ali ga Heroku ne podržava (tu koristiš PostgreSQL). Takođe, neophodno je da nakon što aplikaciju raspakuješ na server , odradiš migraciju:

heroku run rake db:migrate

I to bi bilo to.

Ko je trenutno na forumu
 

Ukupno su 1223 korisnika na forumu :: 35 registrovanih, 12 sakrivenih i 1176 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: _Rade, amaterSRB, Bane san, BORUTUS, Brana01, cikadeda, CikaKURE, dankisha, dijica, Dimitrije Paunovic, DPera, dragoljub11987, dushan, ILGromovnik, Još malo pa deda, Karla, ladro, Leonov, lord sir giga, Magistar78, mercedesamg, milenko crazy north, milutin134, ruma, sabros, Smajser, Steeeefan, vathra, vlad the impaler, vladulns, voja64, Volkhov-M, YugoSlav, Zandar, zzapNDjuric99