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

質問編集履歴

2

誤字

2018/04/02 13:33

投稿

gororo
gororo

スコア7

title CHANGED
File without changes
body CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
  どなたかわかる方いらっしゃいますでしょうか?
46
46
 
47
- heroku run db:migrateで画像のようにエラーが出てしまいます。
47
+ heroku run db:migrateで上記のようにエラーが出てしまいます。
48
48
  ### 補足情報(FW/ツールのバージョンなど)
49
49
  ruby 2.3.6
50
50
  rails 5.1.6

1

書式の改善

2018/04/02 13:33

投稿

gororo
gororo

スコア7

title CHANGED
@@ -1,1 +1,1 @@
1
- herokuでデプ
1
+ heroku run rake db:migrate ーが起きる!
body CHANGED
@@ -2,20 +2,48 @@
2
2
  railsアプリケーションをherokuでデプライしようとしています。
3
3
 
4
4
  ### 発生している問題・エラーメッセージ
5
+ Running rake db:migrate on ⬢ guarded-sands-38572... up, run.5628 (Free)
6
+ rake aborted!
7
+ 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
8
+ /app/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/lib/pg.rb:4:in `require'
9
+ /app/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/lib/pg.rb:4:in `<top (required)>'
10
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `require'
11
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
12
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `each'
13
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `block in require'
14
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `each'
15
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `require'
16
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler.rb:108:in `require'
17
+ /app/config/application.rb:7:in `<top (required)>'
18
+ /app/Rakefile:4:in `require_relative'
19
+ /app/Rakefile:4:in `<top (required)>'
20
+ /app/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
21
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `load'
22
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
23
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:27:in `run'
24
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:360:in `exec'
25
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
26
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
27
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
28
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:20:in `dispatch'
29
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
30
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/cli.rb:10:in `start'
31
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/exe/bundle:30:in `block in <top (required)>'
32
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
33
+ /app/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/exe/bundle:22:in `<top (required)>'
34
+ /app/bin/bundle:3:in `load'
35
+ /app/bin/bundle:3:in `<main>'
5
- ![イメージ説明](1eea648daf140788bbcec905909effc6.png)
36
+ (See full trace by running task with --trace)
37
+
6
38
  ### 該当のソースコード
7
39
 
8
40
 
41
+
9
42
  ### 試したこと
10
- gemファイル'sqlite3''pg'変更
43
+ heroku公式リファレンス(https://devcenter.heroku.com/articles/getting-started-with-rails4)に沿ってミスのないよう勧めました。また他のサ参照して実行しても同様heroku run rake db:migrateで上のエラーと同じものが発生します。
11
- bundle install
12
- heroku create
13
- git init
14
- git add .
15
- git commit -m ""
16
- git push heroku master
17
- ここまではうまく実行できます。
18
44
 
45
+ どなたかわかる方いらっしゃいますでしょうか?
46
+
19
47
  heroku run db:migrateで画像のようにエラーが出てしまいます。
20
48
  ### 補足情報(FW/ツールのバージョンなど)
21
49
  ruby 2.3.6