Rails
環境 ruby: 2.4.2p198 Rails: 5.2.1 エラー発生 $ bundle install : : Fetching mysql2 0.4.10 Installing mysql2 0.4.10 with native extensions Errno::EACCES: Permission denied @ rb_sysopen - /usr/local/var/rbenv/versions/2.4.2/lib/ruby/gems/2.4.…
問題内容 以下のコマンドを実行した結果,MySQL2のエラーが発生した. $ rake db:create : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5,…
1:3000以外のポートを指定 $ rails s -p3001 http://0.0.0.0:3001にアクセス。 参考 WEBrickを別ポート(3000以外)で起動する 2:ポート80番に指定 $ sudo rails server -p 80 http://0.0.0.0/にアクセス。 参考 http://yoshifumisato.jeez.jp/wordpress/pos…
エラー発生1 RailsでRSpecを使用してテストをした際に以下のような警告文に遭遇。 rubyは2.0.0p247、Railsは4.1.1を使用。 $ bundle exec rspec spec/requests/top_pages_spec.rb Warning: you should require 'minitest/autorun' instead. Warning: or add …