質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Q&A

1回答

274閲覧

git push heroku ができない。

xk2ykx

総合スコア11

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

0グッド

0クリップ

投稿2018/10/14 05:49

タイトルの通り、git push heroku ができずに困っております。
検索で出てくる一通りのことは全てやりましたが、それでも解決しません。

以下が、herokuでのログです。

Overview Resources Deploy Metrics Activity Access Settings Activity Feed Build Log ID 486555ce-a78b-4320-9b90-b3f57fe8bee2 ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. Detected buildpacks: Ruby,Node.js See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order -----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.5.1 -----> Installing dependencies using bundler 1.15.2 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. Fetching gem metadata from https://rubygems.org/......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Fetching rake 12.3.1 ---(省略)--- Bundle completed (167.64s) Cleaning up the bundler cache. Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. The latest bundler is 1.17.0.pre.2, but you are currently running 1.15.2. To update, run `gem install bundler --pre` -----> Installing node-v8.10.0-linux-x64 -----> Detecting rake tasks ! ! Could not detect rake tasks ! ensure you can run `$ bundle exec rake -P` against your app ! and using the production group of your Gemfile. ! rake about ! environment ! rake active_storage:install ! environment ---(省略)--- /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError) ensure you can run `$ bundle exec rake -P` against your app and using the production group of your Gemfile. rake about environment rake active_storage:install environment rake active_storage:install:migrations rake app:template environment --- (省略) --- from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/instrument.rb:35:in `trace' from /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/bin/support/ruby_compile:15:in `<main>' ! Push rejected, failed to compile Ruby app. ! Push failed

関係のありそうなファイルも記述します。

config/database.yml

Ruby

1# SQLite version 3.x 2# gem install sqlite3 3# 4# Ensure the SQLite 3 gem is defined in your Gemfile 5# gem 'sqlite3' 6# 7default: &default 8 adapter: sqlite3 9 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> 10 timeout: 5000 11 12development: 13 <<: *default 14 database: db/development.sqlite3 15 16# Warning: The database defined as "test" will be erased and 17# re-generated from your development database when you run "rake". 18# Do not set this db to the same as development or production. 19test: 20 <<: *default 21 database: db/test.sqlite3 22 23production: 24 <<: *default 25 url: <%= ENV['postgres://(省略).compute-1.amazonaws.com:5432/d1c3medhp8dhot'] %>

Gemfile

Ruby

1default: &default 2 adapter: sqlite3 3 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> 4 timeout: 5000 5 6development: 7 <<: *default 8 database: db/development.sqlite3 9 10test: 11 <<: *default 12 database: db/test.sqlite3 13 14production: 15 <<: *default 16 url: <%= ENV['postgres://cjjswymzpvomui:c4acba5f0afe1b0c93db1d9df2bbdef1290d7eab09d566cdf92a0e1495f05295@ec2-54-221-234-62.compute-1.amazonaws.com:5432/d1c3medhp8dhot'] %>

Gemfile.lock

Ruby

1GEM 2 remote: https://rubygems.org/ 3 specs: 4 actioncable (5.2.1) 5 actionpack (= 5.2.1) 6 nio4r (~> 2.0) 7 websocket-driver (>= 0.6.1) 8 actionmailer (5.2.1) 9 actionpack (= 5.2.1) 10 actionview (= 5.2.1) 11 activejob (= 5.2.1) 12 mail (~> 2.5, >= 2.5.4) 13 rails-dom-testing (~> 2.0) 14 actionpack (5.2.1) 15 actionview (= 5.2.1) 16 activesupport (= 5.2.1) 17 rack (~> 2.0) 18 rack-test (>= 0.6.3) 19 rails-dom-testing (~> 2.0) 20 rails-html-sanitizer (~> 1.0, >= 1.0.2) 21 actionview (5.2.1) 22 activesupport (= 5.2.1) 23 builder (~> 3.1) 24 erubi (~> 1.4) 25 rails-dom-testing (~> 2.0) 26 rails-html-sanitizer (~> 1.0, >= 1.0.3) 27 activejob (5.2.1) 28 activesupport (= 5.2.1) 29 globalid (>= 0.3.6) 30 activemodel (5.2.1) 31 activesupport (= 5.2.1) 32 activerecord (5.2.1) 33 activemodel (= 5.2.1) 34 activesupport (= 5.2.1) 35 arel (>= 9.0) 36 activestorage (5.2.1) 37 actionpack (= 5.2.1) 38 activerecord (= 5.2.1) 39 marcel (~> 0.3.1) 40 activesupport (5.2.1) 41 concurrent-ruby (~> 1.0, >= 1.0.2) 42 i18n (>= 0.7, < 2) 43 minitest (~> 5.1) 44 tzinfo (~> 1.1) 45 addressable (2.5.2) 46 public_suffix (>= 2.0.2, < 4.0) 47 ansi (1.5.0) 48 archive-zip (0.11.0) 49 io-like (~> 0.3.0) 50 arel (9.0.0) 51 autoprefixer-rails (9.1.4) 52 execjs 53 bcrypt (3.1.12) 54 bindex (0.5.0) 55 bootsnap (1.3.2) 56 msgpack (~> 1.0) 57 bootstrap-sass (3.3.7) 58 autoprefixer-rails (>= 5.2.1) 59 sass (>= 3.3.4) 60 bootstrap-will_paginate (1.0.0) 61 will_paginate 62 builder (3.2.3) 63 byebug (10.0.2) 64 capybara (3.9.0) 65 addressable 66 mini_mime (>= 0.1.3) 67 nokogiri (~> 1.8) 68 rack (>= 1.6.0) 69 rack-test (>= 0.6.3) 70 xpath (~> 3.1) 71 childprocess (0.9.0) 72 ffi (~> 1.0, >= 1.0.11) 73 chromedriver-helper (2.1.0) 74 archive-zip (~> 0.10) 75 nokogiri (~> 1.8) 76 coffee-rails (4.2.2) 77 coffee-script (>= 2.2.0) 78 railties (>= 4.0.0) 79 coffee-script (2.4.1) 80 coffee-script-source 81 execjs 82 coffee-script-source (1.12.2) 83 concurrent-ruby (1.0.5) 84 crass (1.0.4) 85 erubi (1.7.1) 86 execjs (2.7.0) 87 faker (1.7.3) 88 i18n (~> 0.5) 89 ffi (1.9.25) 90 font-awesome-rails (4.7.0.4) 91 railties (>= 3.2, < 6.0) 92 font-awesome-sass (5.3.1) 93 sassc (>= 1.11) 94 globalid (0.4.1) 95 activesupport (>= 4.2.0) 96 i18n (0.9.5) 97 concurrent-ruby (~> 1.0) 98 io-like (0.3.0) 99 jbuilder (2.7.0) 100 activesupport (>= 4.2.0) 101 multi_json (>= 1.2) 102 jquery-rails (4.3.3) 103 rails-dom-testing (>= 1, < 3) 104 railties (>= 4.2.0) 105 thor (>= 0.14, < 2.0) 106 jquery-ui-rails (6.0.1) 107 railties (>= 3.2.16) 108 listen (3.1.5) 109 rb-fsevent (~> 0.9, >= 0.9.4) 110 rb-inotify (~> 0.9, >= 0.9.7) 111 ruby_dep (~> 1.2) 112 loofah (2.2.2) 113 crass (~> 1.0.2) 114 nokogiri (>= 1.5.9) 115 mail (2.7.1) 116 mini_mime (>= 0.1.1) 117 marcel (0.3.3) 118 mimemagic (~> 0.3.2) 119 method_source (0.9.0) 120 mimemagic (0.3.2) 121 mini_mime (1.0.1) 122 mini_portile2 (2.3.0) 123 minitest (5.11.3) 124 minitest-doc_reporter (0.6.0) 125 ansi 126 minitest (~> 5.0) 127 msgpack (1.2.4) 128 multi_json (1.13.1) 129 nio4r (2.3.1) 130 nokogiri (1.8.5) 131 mini_portile2 (~> 2.3.0) 132 pg (1.1.3) 133 public_suffix (3.0.3) 134 puma (3.12.0) 135 rack (2.0.5) 136 rack-test (1.1.0) 137 rack (>= 1.0, < 3) 138 rails (5.2.1) 139 actioncable (= 5.2.1) 140 actionmailer (= 5.2.1) 141 actionpack (= 5.2.1) 142 actionview (= 5.2.1) 143 activejob (= 5.2.1) 144 activemodel (= 5.2.1) 145 activerecord (= 5.2.1) 146 activestorage (= 5.2.1) 147 activesupport (= 5.2.1) 148 bundler (>= 1.3.0) 149 railties (= 5.2.1) 150 151---(省略)--- 152 153 activemodel (>= 5.0) 154 bindex (>= 0.4.0) 155 railties (>= 5.0) 156 websocket-driver (0.7.0) 157 websocket-extensions (>= 0.1.0) 158 websocket-extensions (0.1.3) 159 will_paginate (3.1.6) 160 xpath (3.1.0) 161 nokogiri (~> 1.8) 162 163PLATFORMS 164 ruby 165 166DEPENDENCIES 167 bcrypt (= 3.1.12) 168 bootsnap (>= 1.1.0) 169 bootstrap-sass 170 bootstrap-will_paginate (= 1.0.0) 171 byebug 172 capybara (>= 2.15) 173 chromedriver-helper 174 coffee-rails (~> 4.2) 175 faker (= 1.7.3) 176 font-awesome-rails 177 font-awesome-sass (~> 5.3.1) 178 jbuilder (~> 2.5) 179 jquery-rails 180 jquery-ui-rails 181 listen (>= 3.0.5, < 3.2) 182 minitest-doc_reporter 183 pg 184 puma (~> 3.11) 185 rails (~> 5.2.1) 186 rails-controller-testing 187 sass-rails (~> 5.0) 188 sassc 189 selenium-webdriver 190 spring 191 spring-watcher-listen (~> 2.0.0) 192 sqlite3 193 turbolinks (~> 5) 194 uglifier (>= 1.3.0) 195 web-console (>= 3.3.0) 196 will_paginate (= 3.1.6) 197 198RUBY VERSION 199 ruby 2.5.1p57 200 201BUNDLED WITH 202 1.16.6

いまいち検索をして試してみても、何も変わらずでかれこれ24時間以上経っております・・・。
おそらく、コンパイルエラーか、gemの記述方法が悪いのか、sqliteとpgの中でなにか問題が発生しているのか、database.ymlの書き方が違うのかと思っています。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mather

2018/10/14 05:51

Rakefileはコミットしてますか?Rakefileの中身も提示してください。
xk2ykx

2018/10/14 06:34

こんにちは、ご返信ありがとうございます!回答欄にRakefileと.gitignoreの中身を記入しました。お忙しいところ申し訳ないですが、ご確認よろしくお願いいたします。
guest

回答1

0

RakeFile

Ruby

1# Add your own tasks in files placed in lib/tasks ending in .rake, 2# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 4require_relative 'config/application' 5 6Rails.application.load_tasks 7

.gitignore

# See https://help.github.com/articles/ignoring-files for more about ignoring files. # # If you find yourself ignoring temporary files generated by your text editor # or operating system, you probably want to add a global ignore instead: # git config --global core.excludesfile '~/.gitignore_global' # Ignore bundler config. /.bundle # Ignore the default SQLite database. /db/*.sqlite3 /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. /log/* /tmp/* !/log/.keep !/tmp/.keep # Ignore uploaded files in development /storage/* !/storage/.keep /node_modules /yarn-error.log /public/assets .byebug_history # Ignore master key for decrypting credentials and more. /config/master.key

投稿2018/10/14 06:33

xk2ykx

総合スコア11

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問