teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

7

ログ

2018/01/05 14:32

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- herokuで表示させていたアプリが、rubyのversionを変更した別アプリを作成したことによって表示できなくなってしまいました。そこでheroku logsで確認すると下記のエラーが表示されます。
1
+ herokuで表示させていたアプリが、rubyのversionを変更した別アプリを作成したことによって表示できなくなってしまいました。そこでheroku logsで確認すると下記のエラーが表示されます。ログが長いので詳細を書きたかったのですがかけず。
2
2
  ```ここに言語を入力
3
3
  2018-01-05T10:05:30.344925+00:00 heroku[web.1]: State changed from up to down
4
4
  2018-01-05T10:05:31.290774+00:00 heroku[web.1]: Stopping all processes with SIGTERM

6

コードの変更

2018/01/05 14:32

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
@@ -1,61 +1,55 @@
1
- herokuで表示させていたアプリが、rubyのversionを変更した別アプリを作成したことによって表示できなくなってしまいました。ローカルで確認したころロカルでは動いています。
1
+ herokuで表示させていたアプリが、rubyのversionを変更した別アプリを作成したことによって表示できなくなってしまいました。そこheroku logsで確認する下記のエラが表示されます。
2
2
  ```ここに言語を入力
3
+ 2018-01-05T10:05:30.344925+00:00 heroku[web.1]: State changed from up to down
4
+ 2018-01-05T10:05:31.290774+00:00 heroku[web.1]: Stopping all processes with SIGTERM
5
+ 2018-01-05T10:05:31.462600+00:00 app[web.1]: /app/vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:177:in `block in start'
6
+ 2018-01-05T10:05:31.462598+00:00 app[web.1]: /app/vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:177:in `select'
7
+ 2018-01-05T10:05:31.462601+00:00 app[web.1]: /app/vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:33:in `start'
8
+ 2018-01-05T10:05:31.462602+00:00 app[web.1]: /app/vendor/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:164:in `start'
9
+ 2018-01-05T10:05:31.462602+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:34:in `run'
10
+ 2018-01-05T10:05:31.462603+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:287:in `start'
11
+ 2018-01-05T10:05:31.462582+00:00 app[web.1]: [2018-01-05 10:05:31] FATAL SignalException: SIGTERM
12
+ 2018-01-05T10:05:31.462604+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
13
+ 2018-01-05T10:05:31.462605+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
14
+ 2018-01-05T10:05:31.462607+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
15
+ 2018-01-05T10:05:31.462606+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
16
+ 2018-01-05T10:05:31.462608+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
17
+ 2018-01-05T10:05:31.462608+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
18
+ 2018-01-05T10:05:31.462610+00:00 app[web.1]: bin/rails:9:in `require'
19
+ 2018-01-05T10:05:31.464799+00:00 app[web.1]: [2018-01-05 10:05:31] INFO going to shutdown ...
20
+ 2018-01-05T10:05:31.462610+00:00 app[web.1]: bin/rails:9:in `<main>'
21
+ 2018-01-05T10:05:31.464924+00:00 app[web.1]: [2018-01-05 10:05:31] INFO WEBrick::HTTPServer#start done.
3
- We're sorry, but something went wrong.
22
+ 2018-01-05T10:05:31.465065+00:00 app[web.1]: Exiting
23
+ 2018-01-05T10:05:32.856014+00:00 heroku[web.1]: Process exited with status 143
4
- If you are the application owner check the logs for more information.
24
+ 2018-01-05T13:40:40.239111+00:00 heroku[web.1]: State changed from down to starting
25
+ 2018-01-05T13:40:46.768542+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 6179 -e production`
26
+ 2018-01-05T13:40:57.479464+00:00 app[web.1]: [2018-01-05 13:40:57] INFO WEBrick 1.3.1
27
+ 2018-01-05T13:40:57.479516+00:00 app[web.1]: [2018-01-05 13:40:57] INFO ruby 2.3.0 (2015-12-25) [x86_64-linux]
28
+ 2018-01-05T13:40:57.479964+00:00 app[web.1]: [2018-01-05 13:40:57] INFO WEBrick::HTTPServer#start: pid=4 port=6179
29
+ 2018-01-05T13:40:57.814314+00:00 heroku[web.1]: State changed from starting to up
30
+ 2018-01-05T13:40:59.531955+00:00 app[web.1]: => Booting WEBrick
31
+ 2018-01-05T13:40:59.531967+00:00 app[web.1]: => Rails 4.2.6 application starting in production on http://0.0.0.0:6179
32
+ 2018-01-05T13:40:59.531968+00:00 app[web.1]: => Run `rails server -h` for more startup options
33
+ 2018-01-05T13:40:59.531968+00:00 app[web.1]: => Ctrl-C to shutdown server
34
+ 2018-01-05T13:40:59.531969+00:00 app[web.1]: Started GET "/" for 118.240.175.28 at 2018-01-05 13:40:59 +0000
35
+ 2018-01-05T13:40:59.658473+00:00 app[web.1]: Processing by PagesController#index as HTML
36
+ 2018-01-05T13:40:59.685484+00:00 app[web.1]: Rendered partial/_navbar.html.erb (7.5ms)
37
+ 2018-01-05T13:41:00.593858+00:00 app[web.1]: User Load (2.6ms) SELECT "users".* FROM "users"
38
+ 2018-01-05T13:41:00.795241+00:00 app[web.1]: Listing Load (2.1ms) SELECT "listings".* FROM "listings" WHERE "listings"."user_id" = $1 [["user_id", 4]]
39
+ 2018-01-05T13:41:00.888763+00:00 app[web.1]: Photo Load (3.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."listing_id" = $1 [["listing_id", 25]]
40
+ 2018-01-05T13:41:00.892835+00:00 app[web.1]: Rendered pages/index.html.erb within layouts/application (1217.5ms)
41
+ 2018-01-05T13:41:00.898406+00:00 app[web.1]: Completed 500 Internal Server Error in 1239ms (ActiveRecord: 32.6ms)
42
+ 2018-01-05T13:41:00.907925+00:00 app[web.1]:
43
+ 2018-01-05T13:41:00.907929+00:00 app[web.1]: ActionView::Template::Error (undefined method `image' for nil:NilClass):
44
+ 2018-01-05T13:41:00.907932+00:00 app[web.1]: 89: <% if !user.listings.blank?%>
45
+ 2018-01-05T13:41:00.907933+00:00 app[web.1]: 90: <div class="col-md-4 col-sm-6 portfolio-item row-space-2">
46
+ 2018-01-05T13:41:00.907934+00:00 app[web.1]: 91: <%= link_to listing_path(user.listings[0]) do %>
47
+ 2018-01-05T13:41:00.907935+00:00 app[web.1]: 92: <%= image_tag user.listings[0].photos[0].image.url(:medium) %>
48
+ 2018-01-05T13:41:00.907938+00:00 app[web.1]: 95: <%= image_tag user.image,class:"img-circle profile-1"%>
49
+ 2018-01-05T13:41:00.907972+00:00 app[web.1]: app/views/pages/index.html.erb:88:in `_app_views_pages_index_html_erb__2695958356563593208_70064641064040'
50
+ 2018-01-05T13:41:00.907936+00:00 app[web.1]: 93: <% end %>
51
+ 2018-01-05T13:41:00.907967+00:00 app[web.1]: app/views/pages/index.html.erb:92:in `block (2 levels) in _app_views_pages_index_html_erb__2695958356563593208_70064641064040'
52
+ 2018-01-05T13:41:00.907937+00:00 app[web.1]: 94: <div class="portfolio-caption">
53
+ 2018-01-05T13:41:00.907969+00:00 app[web.1]: app/views/pages/index.html.erb:91:in `block in _app_views_pages_index_html_erb__2695958356563593208_70064641064040'
5
54
  ```
6
- herokuのrubyとローカルのrubyのversionが違っていたので下記の解決方法を参考にしたのですが、改善されず困っています。https://teratail.com/questions/85961
7
- 「gemfileでversionを指定した上で、ローカルの方のbundlerを再インストールしてみてください」
8
-
9
- 現在のherokuとローカルのrubyのversion
10
- ```ここに言語を入力
11
- ruby -v
12
- ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
13
- ```
14
- ```ここに言語を入力
15
- heroku run "ruby -v"
16
- ▸ heroku-cli: update available from 6.13.19 to 6.15.7-8cc6cd9
17
- Running ruby -v on ⬢ shrouded-wave-97477... up, run.8115 (Free)
18
- ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
19
- ```
20
-
21
- そこでheroku logsで確認すると下記のエラーが表示されます。
22
- ```ここに言語を入力
23
- 2018-01-05T08:55:49.935748+00:00 app[api]: Starting process with command `ruby -v` by user email@gmail.com
24
- 2018-01-05T08:55:57.163605+00:00 heroku[run.6888]: Awaiting client
25
- 2018-01-05T08:55:57.219675+00:00 heroku[run.6888]: Starting process with command `ruby -v`
26
- 2018-01-05T08:55:57.311421+00:00 heroku[run.6888]: State changed from starting to up
27
- 2018-01-05T08:56:02.496482+00:00 heroku[run.6888]: Process exited with status 0
28
- 2018-01-05T08:56:02.512376+00:00 heroku[run.6888]: State changed from up to complete
29
- 2018-01-05T08:58:40.000000+00:00 app[api]: Build started by user email@gmail.com
30
- 2018-01-05T08:59:45.378247+00:00 app[api]: Release v34 created by user email@gmail.com
31
- 2018-01-05T08:59:45.378247+00:00 app[api]: Deploy 2e221bda by user email@gmail.com
32
- 2018-01-05T08:58:40.000000+00:00 app[api]: Build succeeded
33
- 2018-01-05T08:59:46.974252+00:00 heroku[web.1]: Restarting
34
- 2018-01-05T08:59:46.975069+00:00 heroku[web.1]: State changed from up to starting
35
- 2018-01-05T08:59:48.269630+00:00 heroku[web.1]: Stopping all processes with SIGTERM
36
- 2018-01-05T08:59:48.336974+00:00 app[web.1]: [2018-01-05 08:59:48] FATAL SignalException: SIGTERM
37
- 2018-01-05T08:59:48.336986+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `block in start'
38
- 2018-01-05T08:59:48.336985+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `select'
39
- 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:33:in `start'
40
- 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:164:in `start'
41
- 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:287:in `start'
42
- 2018-01-05T08:59:48.336988+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:34:in `run'
43
- 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
44
- 2018-01-05T08:59:48.336991+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
45
- 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
46
- 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
47
- 2018-01-05T08:59:48.336995+00:00 app[web.1]: bin/rails:9:in `require'
48
- 2018-01-05T08:59:48.336993+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
49
- 2018-01-05T08:59:48.336994+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
50
- 2018-01-05T08:59:48.336996+00:00 app[web.1]: bin/rails:9:in `<main>'
51
- 2018-01-05T08:59:48.337126+00:00 app[web.1]: [2018-01-05 08:59:48] INFO going to shutdown ...
52
- 2018-01-05T08:59:48.337239+00:00 app[web.1]: Exiting
53
- 2018-01-05T08:59:48.337197+00:00 app[web.1]: [2018-01-05 08:59:48] INFO WEBrick::HTTPServer#start done.
54
- 2018-01-05T08:59:49.361568+00:00 heroku[web.1]: Process exited with status 143
55
- 2018-01-05T08:59:52.046600+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 54784 -e production`
56
- 2018-01-05T08:59:58.036516+00:00 app[web.1]: [2018-01-05 08:59:58] INFO WEBrick 1.3.1
57
- 2018-01-05T08:59:58.036591+00:00 app[web.1]: [2018-01-05 08:59:58] INFO ruby 2.3.0 (2015-12-25) [x86_64-linux]
58
- 2018-01-05T08:59:58.037006+00:00 app[web.1]: [2018-01-05 08:59:58] INFO WEBrick::HTTPServer#start: pid=4 port=54784
59
- 2018-01-05T08:59:58.581053+00:00 heroku[web.1]: State changed from starting to up
60
- ```
61
55
  回答是非よろしくお願い致します。

5

コードの変更。別のエラーが発生

2018/01/05 14:31

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
File without changes

4

コードの変更

2018/01/05 13:57

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
@@ -34,20 +34,20 @@
34
34
  2018-01-05T08:59:46.975069+00:00 heroku[web.1]: State changed from up to starting
35
35
  2018-01-05T08:59:48.269630+00:00 heroku[web.1]: Stopping all processes with SIGTERM
36
36
  2018-01-05T08:59:48.336974+00:00 app[web.1]: [2018-01-05 08:59:48] FATAL SignalException: SIGTERM
37
- 2018-01-05T08:59:48.336986+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `block in start'
37
+ 2018-01-05T08:59:48.336986+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `block in start'
38
- 2018-01-05T08:59:48.336985+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `select'
38
+ 2018-01-05T08:59:48.336985+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `select'
39
- 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:33:in `start'
39
+ 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:33:in `start'
40
- 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:164:in `start'
40
+ 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:164:in `start'
41
- 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:287:in `start'
41
+ 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:287:in `start'
42
- 2018-01-05T08:59:48.336988+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:34:in `run'
42
+ 2018-01-05T08:59:48.336988+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:34:in `run'
43
- 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
43
+ 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
44
- 2018-01-05T08:59:48.336991+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
44
+ 2018-01-05T08:59:48.336991+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
45
- 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
45
+ 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
46
- 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
46
+ 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
47
- 2018-01-05T08:59:48.336995+00:00 app[web.1]: bin/rails:9:in `require'
47
+ 2018-01-05T08:59:48.336995+00:00 app[web.1]: bin/rails:9:in `require'
48
- 2018-01-05T08:59:48.336993+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
48
+ 2018-01-05T08:59:48.336993+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
49
- 2018-01-05T08:59:48.336994+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
49
+ 2018-01-05T08:59:48.336994+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
50
- 2018-01-05T08:59:48.336996+00:00 app[web.1]: bin/rails:9:in `<main>'
50
+ 2018-01-05T08:59:48.336996+00:00 app[web.1]: bin/rails:9:in `<main>'
51
51
  2018-01-05T08:59:48.337126+00:00 app[web.1]: [2018-01-05 08:59:48] INFO going to shutdown ...
52
52
  2018-01-05T08:59:48.337239+00:00 app[web.1]: Exiting
53
53
  2018-01-05T08:59:48.337197+00:00 app[web.1]: [2018-01-05 08:59:48] INFO WEBrick::HTTPServer#start done.

3

rubyのversion追加

2018/01/05 13:56

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,18 @@
6
6
  herokuのrubyとローカルのrubyのversionが違っていたので下記の解決方法を参考にしたのですが、改善されず困っています。https://teratail.com/questions/85961
7
7
  「gemfileでversionを指定した上で、ローカルの方のbundlerを再インストールしてみてください」
8
8
 
9
+ 現在のherokuとローカルのrubyのversion
10
+ ```ここに言語を入力
11
+ ruby -v
12
+ ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
13
+ ```
14
+ ```ここに言語を入力
15
+ heroku run "ruby -v"
16
+ ▸ heroku-cli: update available from 6.13.19 to 6.15.7-8cc6cd9
17
+ Running ruby -v on ⬢ shrouded-wave-97477... up, run.8115 (Free)
18
+ ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
19
+ ```
20
+
9
21
  そこでheroku logsで確認すると下記のエラーが表示されます。
10
22
  ```ここに言語を入力
11
23
  2018-01-05T08:55:49.935748+00:00 app[api]: Starting process with command `ruby -v` by user email@gmail.com

2

code変更

2018/01/05 10:11

投稿

fujishiro
fujishiro

スコア7

title CHANGED
File without changes
body CHANGED
@@ -14,9 +14,9 @@
14
14
  2018-01-05T08:55:57.311421+00:00 heroku[run.6888]: State changed from starting to up
15
15
  2018-01-05T08:56:02.496482+00:00 heroku[run.6888]: Process exited with status 0
16
16
  2018-01-05T08:56:02.512376+00:00 heroku[run.6888]: State changed from up to complete
17
- 2018-01-05T08:58:40.000000+00:00 app[api]: Build started by user hard.puncher.akifumi@gmail.com
17
+ 2018-01-05T08:58:40.000000+00:00 app[api]: Build started by user email@gmail.com
18
- 2018-01-05T08:59:45.378247+00:00 app[api]: Release v34 created by user hard.puncher.akifumi@gmail.com
18
+ 2018-01-05T08:59:45.378247+00:00 app[api]: Release v34 created by user email@gmail.com
19
- 2018-01-05T08:59:45.378247+00:00 app[api]: Deploy 2e221bda by user hard.puncher.akifumi@gmail.com
19
+ 2018-01-05T08:59:45.378247+00:00 app[api]: Deploy 2e221bda by user email@gmail.com
20
20
  2018-01-05T08:58:40.000000+00:00 app[api]: Build succeeded
21
21
  2018-01-05T08:59:46.974252+00:00 heroku[web.1]: Restarting
22
22
  2018-01-05T08:59:46.975069+00:00 heroku[web.1]: State changed from up to starting

1

タイトルとコードの変更

2018/01/05 10:03

投稿

fujishiro
fujishiro

スコア7

title CHANGED
@@ -1,1 +1,1 @@
1
- herokuにデプロイできません
1
+ ruby version変更によってherokuにデプロイできません
body CHANGED
@@ -8,11 +8,42 @@
8
8
 
9
9
  そこでheroku logsで確認すると下記のエラーが表示されます。
10
10
  ```ここに言語を入力
11
- 2018-01-05T09:32:47.396539+00:00 app[api]: Starting process with command `ruby -v` by user hard.puncher.akifumi@gmail.com
11
+ 2018-01-05T08:55:49.935748+00:00 app[api]: Starting process with command `ruby -v` by user email@gmail.com
12
- 2018-01-05T09:32:51.874967+00:00 heroku[run.5031]: Awaiting client
12
+ 2018-01-05T08:55:57.163605+00:00 heroku[run.6888]: Awaiting client
13
- 2018-01-05T09:32:51.921705+00:00 heroku[run.5031]: Starting process with command `ruby -v`
13
+ 2018-01-05T08:55:57.219675+00:00 heroku[run.6888]: Starting process with command `ruby -v`
14
- 2018-01-05T09:32:52.170279+00:00 heroku[run.5031]: State changed from starting to up
14
+ 2018-01-05T08:55:57.311421+00:00 heroku[run.6888]: State changed from starting to up
15
- 2018-01-05T09:32:56.548283+00:00 heroku[run.5031]: Process exited with status 0
15
+ 2018-01-05T08:56:02.496482+00:00 heroku[run.6888]: Process exited with status 0
16
- 2018-01-05T09:32:56.562263+00:00 heroku[run.5031]: State changed from up to complete
16
+ 2018-01-05T08:56:02.512376+00:00 heroku[run.6888]: State changed from up to complete
17
+ 2018-01-05T08:58:40.000000+00:00 app[api]: Build started by user hard.puncher.akifumi@gmail.com
18
+ 2018-01-05T08:59:45.378247+00:00 app[api]: Release v34 created by user hard.puncher.akifumi@gmail.com
19
+ 2018-01-05T08:59:45.378247+00:00 app[api]: Deploy 2e221bda by user hard.puncher.akifumi@gmail.com
20
+ 2018-01-05T08:58:40.000000+00:00 app[api]: Build succeeded
21
+ 2018-01-05T08:59:46.974252+00:00 heroku[web.1]: Restarting
22
+ 2018-01-05T08:59:46.975069+00:00 heroku[web.1]: State changed from up to starting
23
+ 2018-01-05T08:59:48.269630+00:00 heroku[web.1]: Stopping all processes with SIGTERM
24
+ 2018-01-05T08:59:48.336974+00:00 app[web.1]: [2018-01-05 08:59:48] FATAL SignalException: SIGTERM
25
+ 2018-01-05T08:59:48.336986+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `block in start'
26
+ 2018-01-05T08:59:48.336985+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:177:in `select'
27
+ 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:33:in `start'
28
+ 2018-01-05T08:59:48.336987+00:00 app[web.1]: /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:164:in `start'
29
+ 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:287:in `start'
30
+ 2018-01-05T08:59:48.336988+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:34:in `run'
31
+ 2018-01-05T08:59:48.336989+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
32
+ 2018-01-05T08:59:48.336991+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
33
+ 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
34
+ 2018-01-05T08:59:48.336992+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
35
+ 2018-01-05T08:59:48.336995+00:00 app[web.1]: bin/rails:9:in `require'
36
+ 2018-01-05T08:59:48.336993+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
37
+ 2018-01-05T08:59:48.336994+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
38
+ 2018-01-05T08:59:48.336996+00:00 app[web.1]: bin/rails:9:in `<main>'
39
+ 2018-01-05T08:59:48.337126+00:00 app[web.1]: [2018-01-05 08:59:48] INFO going to shutdown ...
40
+ 2018-01-05T08:59:48.337239+00:00 app[web.1]: Exiting
41
+ 2018-01-05T08:59:48.337197+00:00 app[web.1]: [2018-01-05 08:59:48] INFO WEBrick::HTTPServer#start done.
42
+ 2018-01-05T08:59:49.361568+00:00 heroku[web.1]: Process exited with status 143
43
+ 2018-01-05T08:59:52.046600+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 54784 -e production`
44
+ 2018-01-05T08:59:58.036516+00:00 app[web.1]: [2018-01-05 08:59:58] INFO WEBrick 1.3.1
45
+ 2018-01-05T08:59:58.036591+00:00 app[web.1]: [2018-01-05 08:59:58] INFO ruby 2.3.0 (2015-12-25) [x86_64-linux]
46
+ 2018-01-05T08:59:58.037006+00:00 app[web.1]: [2018-01-05 08:59:58] INFO WEBrick::HTTPServer#start: pid=4 port=54784
47
+ 2018-01-05T08:59:58.581053+00:00 heroku[web.1]: State changed from starting to up
17
48
  ```
18
49
  回答是非よろしくお願い致します。