railsアプリケーションが完成しました。
絵文字の入力に対応するためデフォルトではmtf8だったmysqlをmtf8mb4にしたいと考えました。
その際あるバージョンからのmysqlはデフォルトでmtf8mb4に対応しているとのことだったので、一度mysqlを削除し増田。その後、再インストールしようとしました。
そこでエラーが起こり、なんとかエラーは治り再度mysqlをダウンロードしたものの、rails serverをすると
ruby
1Traceback (most recent call last): 2 37: from bin/rails:3:in `<main>' 3 36: from bin/rails:3:in `load' 4 35: from /home/ec2-user/environment/tradenote/bin/spring:15:in `<top (required)>' 5 34: from /home/ec2-user/environment/tradenote/bin/spring:15:in `require' 6 33: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' 7 32: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' 8 31: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/bin/spring:49:in `<top (required)>' 9 30: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client.rb:30:in `run' 10 29: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call' 11 28: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call' 12 27: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load' 13 26: from /home/ec2-user/environment/tradenote/bin/rails:9:in `<top (required)>' 14 25: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require' 15 24: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency' 16 23: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require' 17 22: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 18 21: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 19 20: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 20 19: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 21 18: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 22 17: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands.rb:18:in `<top (required)>' 23 16: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/command.rb:46:in `invoke' 24 15: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/command/base.rb:69:in `perform' 25 14: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' 26 13: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 27 12: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 28 11: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in `perform' 29 10: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:142:in `tap' 30 9: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/commands/server/server_command.rb:145:in `block in perform' 31 8: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require' 32 7: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency' 33 6: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require' 34 5: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 35 4: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 36 3: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 37 2: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 38 1: from /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 39/home/ec2-user/environment/tradenote/config/application.rb:8:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)
というエラーになって困っています。
1どう対応すれば良いでしょうか?
2また、githubとherokuを使って公開しようと思っているのですが、その際やはりmysql側では消えてしまったデータは必要なのでしょうか?(cloud9側のマイグレーションファイルなどは残っています。)
herokuではprogateSQLを使うらしいのですが…
ご対応の方どうかよろしくお願いいたします。
あなたの回答
tips
プレビュー