powでError starting application
https://gyazo.com/a9288ce167bdc16453f224caf43041d7
code:error
Error starting application
Your Rack app raised an exception when Pow tried to run it.
Bundler::GemNotFound: Could not find activesupport-5.1.1 in any of the sources
~/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:88:in `block in materialize'
~/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:82:in `map!'
~/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:82:in `materialize'
~/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/bundler/definition.rb:170:in `specs'
~/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/bundler/definition.rb:237:in `specs_for'
when Pow tried to run it.と書いてあるので、pow.cxが原因のエラー Rubyのバージョンが期待したものと違う
プロジェクトのディレクトリに置いてある.ruby-versionに書いてあるバージョンは2.4.1
エラーに出力されているバージョンは2.3.0
なぜか?
上位ディレクトリに.ruby-versionがある場合、そちらが優先される(恐ろしい!)
今回の場合:
~/workspace/myprojectでrails newしている
ある:~/workspace/myproject/.ruby-version
ない:~/workspace/.ruby-version
ある:~/.ruby-version
この状態になってた!
対策
ディレクトリをひとつずつ上がっていって、.ruby-versionを削除したら直った