質問編集履歴
1
不要部分の消去
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,44 +32,6 @@
|
|
32
32
|
mura_db_1 exited with code 1
|
33
33
|
```
|
34
34
|
|
35
|
-
試しに次の処理をしてみましたが、案の定エラーが発生しました。
|
36
|
-
```
|
37
|
-
$ docker-compose run web rake db:create
|
38
|
-
Starting mura_db_1 ... done
|
39
|
-
could not translate host name "db" to address: Name or service not known
|
40
|
-
Couldn't create 'myapp_development' database. Please check your configuration.
|
41
|
-
rake aborted!
|
42
|
-
PG::ConnectionBad: could not translate host name "db" to address: Name or service not known
|
43
|
-
/usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `initialize'
|
44
|
-
/usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `new'
|
45
|
-
/usr/local/bundle/gems/pg-1.2.3/lib/pg.rb:58:in `connect'
|
46
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:692:in `connect'
|
47
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:223:in `initialize'
|
48
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `new'
|
49
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/postgresql_adapter.rb:48:in `postgresql_connection'
|
50
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in `new_connection'
|
51
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in `checkout_new_connection'
|
52
|
-
/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'
|
53
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in `acquire_connection'
|
54
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in `checkout'
|
55
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
|
56
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in `retrieve_connection'
|
57
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
|
58
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:90:in `connection'
|
59
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
|
60
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/postgresql_database_tasks.rb:21:in `create'
|
61
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:119:in `create'
|
62
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:139:in `block in create_current'
|
63
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:316:in `block in each_current_configuration'
|
64
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:313:in `each'
|
65
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:313:in `each_current_configuration'
|
66
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:138:in `create_current'
|
67
|
-
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:29:in `block (2 levels) in <top (required)>'
|
68
|
-
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
|
69
|
-
Tasks: TOP => db:create
|
70
|
-
(See full trace by running task with --trace)
|
71
|
-
```
|
72
|
-
|
73
35
|
### 該当のソースコード
|
74
36
|
databese.yml
|
75
37
|
```
|