本番環境で初期データを投入するためにrakeのコマンドを打つと大量のエラーが出ます。
警告が多く、何から手をつけたらいいかも分からない状況です。
何卒、宜しくおねがいします。
環境
サーバー
AWS
Railsバージョン
5.0.7.2
Rubyバージョン
2.5.1p57
Bundlerバージョン
2.0.2
Capistranoを使って自動デプロイをしています。
エラー内容
実行したいコマンド
rails db:seed RAILS_ENV=production
発生するエラー(長いので省略しています)
/var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb:10: warning: already initialized constant FileUtils::RUBY /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb:10: warning: previous definition of RUBY was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb:108: warning: already initialized constant FileUtils::LN_SUPPORTED /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb:108: warning: previous definition of LN_SUPPORTED was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb:17: warning: already initialized constant Rake::FileUtilsExt::DEFAULT /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb:17: warning: previous definition of DEFAULT was here WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:44: warning: already initialized constant Rake::FileList::ARRAY_METHODS /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:44: warning: previous definition of ARRAY_METHODS was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:47: warning: already initialized constant Rake::FileList::MUST_DEFINE /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:47: warning: previous definition of MUST_DEFINE was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:51: warning: already initialized constant Rake::FileList::MUST_NOT_DEFINE /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:51: warning: previous definition of MUST_NOT_DEFINE was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:55: warning: already initialized constant Rake::FileList::SPECIAL_RETURN /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:55: warning: previous definition of SPECIAL_RETURN was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:61: warning: already initialized constant Rake::FileList::DELEGATING_METHODS /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:61: warning: previous definition of DELEGATING_METHODS was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:86: warning: already initialized constant Rake::FileList::GLOB_PATTERN /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:86: warning: previous definition of GLOB_PATTERN was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:381: warning: already initialized constant Rake::FileList::DEFAULT_IGNORE_PATTERNS /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:381: warning: previous definition of DEFAULT_IGNORE_PATTERNS was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:387: warning: already initialized constant Rake::FileList::DEFAULT_IGNORE_PROCS /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb:387: warning: previous definition of DEFAULT_IGNORE_PROCS was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:3: warning: already initialized constant Rake::VERSION /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:3: warning: previous definition of VERSION was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: already initialized constant Rake::Version::MAJOR /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: previous definition of MAJOR was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: already initialized constant Rake::Version::MINOR /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: previous definition of MINOR was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: already initialized constant Rake::Version::BUILD /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: previous definition of BUILD was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: already initialized constant Rake::Version::OTHER /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:6: warning: previous definition of OTHER was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:8: warning: already initialized constant Rake::Version::NUMBERS /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/version.rb:8: warning: previous definition of NUMBERS was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/linked_list.rb:110: warning: already initialized constant Rake::LinkedList::EMPTY /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-13.0.1/lib/rake/linked_list.rb:110: warning: previous definition of EMPTY was here /var/www/FesLive-app/shared/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/scope.rb:41: warning: already initialized constant Rake::Scope::EMPTY /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-
回答1件
あなたの回答
tips
プレビュー