質問編集履歴

1

不要部分の消去

2020/03/23 06:43

投稿

penguin123
penguin123

スコア16

test CHANGED
File without changes
test CHANGED
@@ -66,82 +66,6 @@
66
66
 
67
67
 
68
68
 
69
- 試しに次の処理をしてみましたが、案の定エラーが発生しました。
70
-
71
- ```
72
-
73
- $ docker-compose run web rake db:create
74
-
75
- Starting mura_db_1 ... done
76
-
77
- could not translate host name "db" to address: Name or service not known
78
-
79
- Couldn't create 'myapp_development' database. Please check your configuration.
80
-
81
- rake aborted!
82
-
83
- PG::ConnectionBad: could not translate host name "db" to address: Name or service not known
84
-
85
- /usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `initialize'
86
-
87
- /usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `new'
88
-
89
- /usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `connect'
90
-
91
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:692:in `connect'
92
-
93
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:223:in `initialize'
94
-
95
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `new'
96
-
97
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `postgresql_connection'
98
-
99
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
100
-
101
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
102
-
103
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `try_to_checkout_new_connection'
104
-
105
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
106
-
107
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
108
-
109
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
110
-
111
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
112
-
113
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
114
-
115
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:90:in `connection'
116
-
117
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
118
-
119
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/postgresql_database_tasks.rb:21:in `create'
120
-
121
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:119:in `create'
122
-
123
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
124
-
125
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
126
-
127
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:313:in `each'
128
-
129
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
130
-
131
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
132
-
133
- /usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
134
-
135
- /usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
136
-
137
- Tasks: TOP => db:create
138
-
139
- (See full trace by running task with --trace)
140
-
141
- ```
142
-
143
-
144
-
145
69
  ### 該当のソースコード
146
70
 
147
71
  databese.yml