Open msm0046 opened 4 years ago
実行コマンド
rails s
実行結果
=> Booting Puma
=> Rails 6.0.3.2 application starting in development
=> Run `rails server --help` for more startup options
Exiting
Traceback (most recent call last):
37: from bin/rails:4:in `<main>'
36: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
35: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
34: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
33: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
32: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
31: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
30: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
29: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
28: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in `<main>'
27: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command.rb:46:in `invoke'
26: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command/base.rb:69:in `perform'
25: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
24: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
23: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
22: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:138:in `perform'
21: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:138:in `tap'
20: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
19: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:37:in `start'
18: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
17: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
16: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
15: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
14: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
13: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
12: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
11: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
10: from config.ru:3:in `block in <main>'
9: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
8: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
7: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
6: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
5: from /Library/Ruby/Gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require'
4: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
1: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': cannot load such file -- /Users/user_name/CODEBASE/api_sample/config/environment (LoadError)
1. RailsをAPIモードでnewする
railsコマンド/オプション
APIモード
--api
DBをpostgresqlに指定
-d postgresql
実行コマンド
実行結果