文系が趣味のプログラミング頑張ってみるブログ

楽しいです。基本はandroidやってます。api作るのにphp使ってたんですがrailsに乗り換えようとしてます。

Rails Tutorialミス1

railstutorial.jp

いやほんとにすごいこのチュートリアル。教えてほしいこと全部わかる。

けどね、自分がアホでつまずく事が多い。

今日のミス。

 

herokuにデプロイしようとして何回やってもエラーが起こる。Sqlite3は使えないよ的な。こんな感じ

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.2.4
-----> Installing dependencies using bundler 1.11.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
       You are trying to install in deployment mode after changing
       your Gemfile. Run `bundle install` elsewhere and add the
       updated Gemfile.lock to version control.
       You have added to the Gemfile:
       * sass-rails (= 5.0.2)
       * uglifier (= 2.5.3)
       * coffee-rails (= 4.1.0)
       * jquery-rails (= 4.0.3)
       * turbolinks (= 2.3.0)
       * jbuilder (= 2.2.3)
       * sdoc (= 0.4.0)
       * tzinfo-data
       * sqlite3 (= 1.3.11)
       * byebug (= 3.4.0)
       * spring (= 1.1.3)
       * web-console (= 3.1.1)
       * minitest-reporters (= 1.0.5)
       * mini_backtrace (= 0.1.3)
       * guard-minitest (= 2.3.1)
       * pg (= 0.17.1)
       * rails_12factor (= 0.0.2)
       You have deleted from the Gemfile:
       * byebug
       * coffee-rails (~> 4.1.0)
       * jbuilder (~> 2.0)
       * jquery-rails
       * sass-rails (~> 5.0)
       * sdoc (~> 0.4.0)
       * spring
       * sqlite3
       * turbolinks
       * uglifier (>= 1.3.0)
       * web-console (~> 2.0)
       Bundler Output: Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
       You are trying to install in deployment mode after changing
       your Gemfile. Run `bundle install` elsewhere and add the
       updated Gemfile.lock to version control.
 
       You have added to the Gemfile:
       * sass-rails (= 5.0.2)
       * uglifier (= 2.5.3)
       * coffee-rails (= 4.1.0)
       * jquery-rails (= 4.0.3)
       * turbolinks (= 2.3.0)
       * jbuilder (= 2.2.3)
       * sdoc (= 0.4.0)
       * tzinfo-data
       * sqlite3 (= 1.3.11)
       * byebug (= 3.4.0)
       * spring (= 1.1.3)
       * web-console (= 3.1.1)
       * minitest-reporters (= 1.0.5)
       * mini_backtrace (= 0.1.3)
       * guard-minitest (= 2.3.1)
       * pg (= 0.17.1)
       * rails_12factor (= 0.0.2)
 
       You have deleted from the Gemfile:
       * byebug
       * coffee-rails (~> 4.1.0)
       * jbuilder (~> 2.0)
       * jquery-rails
       * sass-rails (~> 5.0)
       * sdoc (~> 0.4.0)
       * spring
       * sqlite3
       * turbolinks
       * uglifier (>= 1.3.0)
       * web-console (~> 2.0)
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 
 !     Push failed

 

なぜだ。指示通りやったじゃんと格闘。

そして見つけた。

 

gemfileの変更セーブしてないやん...

cloud9ってなんでオールセーブボタンのショートカットキーないねん...

セーブしたかどうかわかりづれえ...

そしていろんな方法試したせいでgitがpullできなくなったりその他でいろいろ直すのに手間取り2時間。いま休憩。

 

こういう自分の失敗やエラーメモにはちょうどいいなこのブログ