回答編集履歴
1
追記
test
CHANGED
@@ -154,3 +154,53 @@
|
|
154
154
|
・heroku open -a dictum-app では接続はできており一応開くことはできますが、保存した画像がでないです。
|
155
155
|
|
156
156
|
何かしらアドバイスがあればよろしくお願いいたします。
|
157
|
+
|
158
|
+
### 追記
|
159
|
+
https://ja.stackoverflow.com/questions/80924/docker-compose-exec-web-bundle-exec-rake-dbmigrate%E3%82%92%E3%81%99%E3%82%8B%E3%81%A8cant-connect-to-local-my
|
160
|
+
こちらの記事を参考にさせていただき、
|
161
|
+
```
|
162
|
+
environment:
|
163
|
+
APP_DATABASE: db
|
164
|
+
```
|
165
|
+
を追記し、/var/run/mysqld/mysqld.sockを削除してからもう一度トライしましたがダメでした。heroku logs --tailでログを見ると
|
166
|
+
|
167
|
+
```
|
168
|
+
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
169
|
+
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
170
|
+
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
171
|
+
|
172
|
+
2022-03-28T03:12:01.046652+00:00 app[web.1]: For more info visit https://webpack.js.org/guides/code-splitting/
|
173
|
+
2022-03-28T03:12:01.046652+00:00 app[web.1]:
|
174
|
+
2022-03-28T03:12:02.186731+00:00 app[web.1]: => Booting Puma
|
175
|
+
2022-03-28T03:12:02.186740+00:00 app[web.1]: => Rails 6.1.5 application starting in production
|
176
|
+
2022-03-28T03:12:02.186741+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
|
177
|
+
2022-03-28T03:12:03.502437+00:00 app[web.1]: Puma starting in single mode...
|
178
|
+
2022-03-28T03:12:03.502456+00:00 app[web.1]: * Puma version: 5.6.2 (ruby 3.0.3-p157) ("Birdie's Version")
|
179
|
+
2022-03-28T03:12:03.502456+00:00 app[web.1]: * Min threads: 5
|
180
|
+
2022-03-28T03:12:03.502457+00:00 app[web.1]: * Max threads: 5
|
181
|
+
2022-03-28T03:12:03.502457+00:00 app[web.1]: * Environment: production
|
182
|
+
2022-03-28T03:12:03.502457+00:00 app[web.1]: * PID: 124
|
183
|
+
2022-03-28T03:12:03.502668+00:00 app[web.1]: * Listening on http://0.0.0.0:12221
|
184
|
+
2022-03-28T03:12:03.504850+00:00 app[web.1]: Use Ctrl-C to stop
|
185
|
+
2022-03-28T03:12:03.975236+00:00 heroku[web.1]: State changed from starting to up
|
186
|
+
2022-03-28T03:42:46.008467+00:00 heroku[web.1]: Idling
|
187
|
+
2022-03-28T03:42:46.010474+00:00 heroku[web.1]: State changed from up to down
|
188
|
+
2022-03-28T03:42:47.751863+00:00 heroku[web.1]: Stopping all processes with SIGTERM
|
189
|
+
2022-03-28T03:42:47.804359+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
|
190
|
+
2022-03-28T03:42:47.923652+00:00 heroku[web.1]: Process exited with status 143
|
191
|
+
2022-03-28T03:51:19.725911+00:00 app[api]: Starting process with command `bundle exec rake db:migrate RAILS_ENV=production` by user
|
192
|
+
|
193
|
+
2022-03-28T03:52:18.146114+00:00 heroku[run.9830]: State changed from starting to up
|
194
|
+
2022-03-28T03:52:18.170659+00:00 heroku[run.9830]: Awaiting client
|
195
|
+
2022-03-28T03:52:18.187650+00:00 heroku[run.9830]: Starting process with command `bundle exec rake db:migrate RAILS_ENV=production`
|
196
|
+
2022-03-28T03:52:28.444154+00:00 heroku[run.9830]: Process exited with status 1
|
197
|
+
2022-03-28T03:52:28.492356+00:00 heroku[run.9830]: State changed from up to complete
|
198
|
+
2022-03-28T03:54:11.443184+00:00 heroku[web.1]: Unidling
|
199
|
+
2022-03-28T03:54:11.471527+00:00 heroku[web.1]: State changed from down to starting
|
200
|
+
2022-03-28T03:55:03.933842+00:00 heroku[web.1]: Starting process with command `sh /start.sh`
|
201
|
+
2022-03-28T03:55:08.662763+00:00 app[web.1]: yarn install v1.22.18
|
202
|
+
2022-03-28T03:55:08.758004+00:00 app[web.1]: [1/4] Resolving packages...
|
203
|
+
2022-03-28T03:55:09.580955+00:00 app[web.1]: [2/4] Fetching packages...
|
204
|
+
2022-03-28T03:55:26.588267+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=dictum-app.herokuapp.com request_id=3653205c-0684-4e95-b906-99fd0cd2b7ae fwd="14.193.36.5" dyno= connect= service= status=503 bytes= protocol=https
|
205
|
+
```
|
206
|
+
これらのエラーが気になりました。現在調査中です。
|