質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,19 +62,7 @@
|
|
62
62
|
|
63
63
|
Dockerfileを入れてからエラーが出るようになったので、Dockerfileが原因かなと思ったのですが、どこを修正すればいいか分からずにいます。
|
64
64
|
|
65
|
-
何が原因として考えられますか?
|
66
65
|
|
67
|
-
|
68
|
-
|
69
|
-
https://github.com/shunichfukui/Books
|
70
|
-
|
71
|
-
ソースコード
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
sudo dd if=/dev/zero of=/swapfile1 bs=1M count=512
|
76
|
-
|
77
|
-
dd: `/swapfile1' を開けませんでした: Text file busy
|
78
66
|
|
79
67
|
|
80
68
|
|
1
エラー修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -69,3 +69,41 @@
|
|
69
69
|
https://github.com/shunichfukui/Books
|
70
70
|
|
71
71
|
ソースコード
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
sudo dd if=/dev/zero of=/swapfile1 bs=1M count=512
|
76
|
+
|
77
|
+
dd: `/swapfile1' を開けませんでした: Text file busy
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
[ec2-user@**** ~]$ rake secret
|
82
|
+
|
83
|
+
rake aborted!
|
84
|
+
|
85
|
+
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
(See full trace by running task with --trace)
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
[ec2-user@ip**** Books]$ rails db:create RAILS_ENV=production
|
98
|
+
|
99
|
+
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /var/www/Books/config/application.rb:7)
|
100
|
+
|
101
|
+
Unknown MySQL server host 'db' (2)
|
102
|
+
|
103
|
+
Couldn't create 'Books_production' database. Please check your configuration.
|
104
|
+
|
105
|
+
rails aborted!
|
106
|
+
|
107
|
+
Mysql2::Error::ConnectionError: Unknown MySQL server host 'db' (2)
|
108
|
+
|
109
|
+
```
|