質問編集履歴

2

誤字

2018/04/02 13:33

投稿

gororo
gororo

スコア7

test CHANGED
File without changes
test CHANGED
@@ -90,7 +90,7 @@
90
90
 
91
91
 
92
92
 
93
- heroku run db:migrateで画像のようにエラーが出てしまいます。
93
+ heroku run db:migrateで上記のようにエラーが出てしまいます。
94
94
 
95
95
  ### 補足情報(FW/ツールのバージョンなど)
96
96
 

1

書式の改善

2018/04/02 13:33

投稿

gororo
gororo

スコア7

test CHANGED
@@ -1 +1 @@
1
- herokuでデプ
1
+ heroku run rake db:migrate ーが起きる!
test CHANGED
@@ -6,7 +6,71 @@
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
+ Running rake db:migrate on ⬢ guarded-sands-38572... up, run.5628 (Free)
10
+
11
+ rake aborted!
12
+
13
+ LoadError: libruby.so.2.3: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/lib/pg_ext.so
14
+
15
+ /app/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/lib/pg.rb:4:in `require'
16
+
17
+ /app/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/lib/pg.rb:4:in `<top (required)>'
18
+
19
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `require'
20
+
21
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
22
+
23
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `each'
24
+
25
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `block in require'
26
+
27
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `each'
28
+
29
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `require'
30
+
31
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler.rb:108:in `require'
32
+
33
+ /app/config/application.rb:7:in `<top (required)>'
34
+
35
+ /app/Rakefile:4:in `require_relative'
36
+
37
+ /app/Rakefile:4:in `<top (required)>'
38
+
39
+ /app/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
40
+
41
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `load'
42
+
43
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
44
+
45
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:27:in `run'
46
+
47
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:360:in `exec'
48
+
49
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
50
+
51
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
52
+
53
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
54
+
55
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:20:in `dispatch'
56
+
57
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
58
+
59
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:10:in `start'
60
+
61
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/exe/bundle:30:in `block in <top (required)>'
62
+
63
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
64
+
65
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/exe/bundle:22:in `<top (required)>'
66
+
67
+ /app/bin/bundle:3:in `load'
68
+
69
+ /app/bin/bundle:3:in `<main>'
70
+
9
- ![イメージ説明](1eea648daf140788bbcec905909effc6.png)
71
+ (See full trace by running task with --trace)
72
+
73
+
10
74
 
11
75
  ### 該当のソースコード
12
76
 
@@ -14,23 +78,15 @@
14
78
 
15
79
 
16
80
 
81
+
82
+
17
83
  ### 試したこと
18
84
 
19
- gemファイル'sqlite3''pg'に変更
85
+ heroku公式リファレンス(https://devcenter.heroku.com/articles/getting-started-with-rails4)に沿ってミスのないよう勧めました。また他のサイト参照して実行しても同様にheroku run rake db:migrateで上のエラーと同じものが発生します。
20
86
 
21
- bundle install
22
87
 
23
- heroku create
24
88
 
25
- git init
26
-
27
- git add .
28
-
29
- git commit -m ""
30
-
31
- git push heroku master
89
+ どなたかわかる方いらっしゃいますでしょうか?
32
-
33
- ここまではうまく実行できます。
34
90
 
35
91
 
36
92