Trying to learn ROR with the railstutorial.org, and i''m trying to push to Heroku and getting the following error: # git push heroku master Counting objects: 85, done. Delta compression using up to 2 threads. Compressing objects: 100% (68/68), done. Writing objects: 100% (85/85), 87.95 KiB, done. Total 85 (delta 18), reused 0 (delta 0) -----> Rails app detected -----> Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----> Gemfile detected, running Bundler version 1.0.3 Unresolved dependencies detected; Installing... You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control You have added to the Gemfile: * sqlite3-ruby (= 1.3.2) You have deleted from the Gemfile: * sqlite3-ruby FAILED: http://docs.heroku.com/bundler ! Heroku push rejected, failed to install gems via Bundler Any help would be greatly appreciated! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Arailsdemo A.
2011-Jan-15 14:39 UTC
Re: Learning Rails wth tutorial - can''t push to Heroku
Try running ''bundle install'' (or ''bundle'' for short) from the command line and then repushing to Heroku. If that doesn''t work, try ''bundle update''. Make sure you run bundle install anytime after changing your Gemfile. =========== About Gemfile.lock: If you have gem ''rails'' in your Gemfile, when you run ''bundle install'' for the first time, Bundler will create your Gemfile.lock file to specify the version of the gems that you''re using (along with the gems that your gems depend on). rails (3.0.3) Typically, when you add or remove a gem, ''bundle install'' will update your Gemfile.lock file without a problem. However, when you get to working with different gem versions then you may need ''bundle update''. Be careful with this though, ''bundle update'' without specifying a gem will update ALL of your gems. So if a gem has a major version out that your weren''t aware of, your application may break. Please read http://gembundler.com/man/bundle-update.1.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, don''t worry, you''re ready with the hardest part I think, your connection, SSH keys, Git works fine. You have only Sqlite Gem problem as it says: You have deleted from the Gemfile:> * sqlite3-rubyAs other wrote here try bundle or bulndle install. You probably changed it without reinstalling. If it has any problem with installing it locally you can find solutions here: http://stackoverflow.com/search?q=sqlite3+gem good luck, gezope On jan. 15, 06:36, Mike Glozman <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Trying to learn ROR with the railstutorial.org, and i''m trying to push > to Heroku and getting the following error: > > # git push heroku master > Counting objects: 85, done. > Delta compression using up to 2 threads. > Compressing objects: 100% (68/68), done. > Writing objects: 100% (85/85), 87.95 KiB, done. > Total 85 (delta 18), reused 0 (delta 0) > -----> Rails app detected > -----> Detected Rails is not set to serve static_assets > Installing rails3_serve_static_assets... done > -----> Gemfile detected, running Bundler version 1.0.3 > Unresolved dependencies detected; Installing... > You have modified your Gemfile in development but did not check > the resulting snapshot (Gemfile.lock) into version control > You have added to the Gemfile: > * sqlite3-ruby (= 1.3.2) > You have deleted from the Gemfile: > * sqlite3-ruby > FAILED:http://docs.heroku.com/bundler > ! Heroku push rejected, failed to install gems via Bundler > > Any help would be greatly appreciated! > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Matthew Rupert
2011-Jan-15 21:10 UTC
Re: Learning Rails wth tutorial - can''t pust to Heroku
I am reading the same book. I don''t know why the author gets hung up on git and heroku so early. On Jan 15, 11:28 am, gezope <gez...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > don''t worry, you''re ready with the hardest part I think, your > connection, SSH keys, Git works fine. > > You have only Sqlite Gem problem as it says: > > You have deleted from the Gemfile: > > > * sqlite3-ruby > > As other wrote here try bundle or bulndle install. You probably > changed it without reinstalling. > > If it has any problem with installing it locally you can find > solutions here:http://stackoverflow.com/search?q=sqlite3+gem > > good luck, > gezope > > On jan. 15, 06:36, Mike Glozman <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > > Trying to learn ROR with the railstutorial.org, and i''m trying to push > > to Heroku and getting the following error: > > > # git push heroku master > > Counting objects: 85, done. > > Delta compression using up to 2 threads. > > Compressing objects: 100% (68/68), done. > > Writing objects: 100% (85/85), 87.95 KiB, done. > > Total 85 (delta 18), reused 0 (delta 0) > > -----> Rails app detected > > -----> Detected Rails is not set to serve static_assets > > Installing rails3_serve_static_assets... done > > -----> Gemfile detected, running Bundler version 1.0.3 > > Unresolved dependencies detected; Installing... > > You have modified your Gemfile in development but did not check > > the resulting snapshot (Gemfile.lock) into version control > > You have added to the Gemfile: > > * sqlite3-ruby (= 1.3.2) > > You have deleted from the Gemfile: > > * sqlite3-ruby > > FAILED:http://docs.heroku.com/bundler > > ! Heroku push rejected, failed to install gems via Bundler > > > Any help would be greatly appreciated! > > > -- > > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mike Glozman
2011-Jan-15 22:39 UTC
Re: Learning Rails wth tutorial - can''t pust to Heroku
Zoltan Gero wrote in post #975157:> Hi, > don''t worry, you''re ready with the hardest part I think, your > connection, SSH keys, Git works fine. > > You have only Sqlite Gem problem as it says: > > You have deleted from the Gemfile: >> * sqlite3-ruby > > As other wrote here try bundle or bulndle install. You probably > changed it without reinstalling. > > If it has any problem with installing it locally you can find > solutions here: > http://stackoverflow.com/search?q=sqlite3+gem > > good luck, > gezopeHi Zoltan, First, thanks for all of your help! I tried doing a bundle install and it failing when trying to install sqlite - it responds permission denied. See below: $ bundle install Fetching source index for http://rubygems.org/ Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.3) Using builder (2.1.2) Using i18n (0.4.2) Using activemodel (3.0.3) Using erubis (2.6.6) Using rack (1.2.1) Using rack-mount (0.6.13) Using rack-test (0.5.6) Using tzinfo (0.3.23) Using actionpack (3.0.3) Using mime-types (1.16) Using polyglot (0.3.1) Using treetop (1.4.9) Using mail (2.2.10) Using actionmailer (3.0.3) Using arel (2.0.4) Using activerecord (3.0.3) Using activeresource (3.0.3) Using bundler (1.0.7) Using thor (0.14.4) Using railties (3.0.3) Using rails (3.0.3) Installing sqlite3-ruby (1.3.2) /Library/Ruby/Site/1.8/rubygems/installer.rb:519:in `initialize'': Permission denied - /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.2/API_CHANGES.rdoc (Errno::EACCES) from /Library/Ruby/Site/1.8/rubygems/installer.rb:519:in `open'' from /Library/Ruby/Site/1.8/rubygems/installer.rb:519:in `extract_files'' from /Library/Ruby/Site/1.8/rubygems/installer.rb:500:in `each'' from /Library/Ruby/Site/1.8/rubygems/installer.rb:500:in `extract_files'' from /Library/Ruby/Site/1.8/rubygems/installer.rb:196:in `install'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `run'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `send'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start'' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/bin/bundle:13 from /usr/bin/bundle:19:in `load'' from /usr/bin/bundle:19 BTW, as instructed in the tutorial I made this change to the Gemlock file: "gem ''sqlite3-ruby'', ''1.3.2'', :group => :development" Thank again, Mike -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mike Glozman
2011-Jan-15 22:41 UTC
Re: Learning Rails wth tutorial - can''t pust to Heroku
Matthew Rupert wrote in post #975182:> I am reading the same book. I don''t know why the author gets hung up > on git and heroku so early.I agree... If I can''t resolve this soon I''m going to switch to the "Agile Web Development with Rails" book. Frustrating... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2011-Jan-15 23:04 UTC
Re: Learning Rails wth tutorial - can''t push to Heroku
Mike Glozman wrote in post #975083:> Trying to learn ROR with the railstutorial.org, and i''m trying to push > to Heroku and getting the following error: > > # git push heroku master > Counting objects: 85, done. > Delta compression using up to 2 threads. > Compressing objects: 100% (68/68), done. > Writing objects: 100% (85/85), 87.95 KiB, done. > Total 85 (delta 18), reused 0 (delta 0) > -----> Rails app detected > -----> Detected Rails is not set to serve static_assets > Installing rails3_serve_static_assets... done > -----> Gemfile detected, running Bundler version 1.0.3 > Unresolved dependencies detected; Installing... > You have modified your Gemfile in development but did not check > the resulting snapshot (Gemfile.lock) into version controlWell, there''s your precise error description right there. Have you done what''s suggested there?> You have added to the Gemfile: > * sqlite3-ruby (= 1.3.2) > You have deleted from the Gemfile: > * sqlite3-ruby > FAILED: http://docs.heroku.com/bundler > ! Heroku push rejected, failed to install gems via Bundler > > Any help would be greatly appreciated!Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Arailsdemo A.
2011-Jan-16 01:45 UTC
Re: Learning Rails wth tutorial - can''t push to Heroku
You can try installing the gem outside of Bundler.> gem install sqlite3-rubyor if you''re not using RVM> sudo gem install sqlite3-ruby-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Oh yes, he''s right, forgot to ask: do you have Sqlite3 gem itself? The way is: 1. Right version of Ruby, Gem, Rails installed - hopefully with Ruby Version Manager http://rvm.beginrescueend.com/ . You can try these from terminal: "ruby -v" "rails-v" "gem -v" (If you have further problems please write here the output, also your OS.) 2. Installing the requred gems. Here you may not have the Sqlite3 gem in your system so bundle can''t use it. As Arailsdemo wrote depending on using RVM or not you do: with RVM: gem install sqlite3-ruby (NOT sudo, important!) without RVM: sudo gem install sqlite3-ruby You should check if it exists already by: "gem list" (Also send the list here if you have further problem please.) 3. Then bundle it, run server, etc. I recommend to search this mailinst and StackOverflow too. ---- About tutorial: I think it''s almost identical, learn it the way how it suits you the most. Agile Web Development with Rails is also a great source, highly recommended. Don''t be angry with it, ask more here or elsewhere. Using Git, Heroku, Rspec from the beginning is very good practise. Heroku is for deployment. It''s not a tragedy if you cannot use it, you can learn later how to deploy an application, but of course sooner is better. I can suggest read Heroku''s FAQ and ask their Support they''re really helpful. Good luck, Zoltan On jan. 16, 02:45, "Arailsdemo A." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> You can try installing the gem outside of Bundler. > > > gem install sqlite3-ruby > > or if you''re not using RVM > > > sudo gem install sqlite3-ruby > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.