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

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

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

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

Git

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

Heroku

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

Ruby on Rails

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

Q&A

0回答

1246閲覧

herokuへのデプロイについて

yuccaaaa

総合スコア8

Ruby

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

Git

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

Heroku

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

Ruby on Rails

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

0グッド

1クリップ

投稿2017/09/20 10:46

###前提・実現したいこと
初めての質問なので見当違いなことを聞いていたらすみません。

Ruby on rails での開発を勉強し始めたばかりで、
https://railstutorial.jp/chapters/beginning?version=5.0#cha-beginning
こちらを拝見しながら進めているのですが、
herokuへのデプロイがうまく行きません。

ターミナルには下記のように表示されているのですが、何が問題かいまいちわからず、
ご教示いただけましたら幸いです。

###発生している問題・エラーメッセージ
$ git push heroku master

Counting objects: 64, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (49/49), done.
Writing objects: 100% (64/64), 11.28 KiB | 0 bytes/s, done.
Total 64 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.3.4
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.0.pre.2). We suggest you upgrade to the latest version of Bundler by running gem install bundler --pre.
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
.
.
.
remote: To update, run gem install bundler --pre
remote: Bundle completed (28.99s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v6.11.1-linux-x64
remote: -----> Detecting rake tasks
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run $ bundle exec rake -P against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: cannot load such file -- /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/config/application
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/Rakefile:4:in require_relative' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/Rakefile:4:in <top (required)>'
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in load' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in load_rakefile'
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:688:in raw_load_rakefile' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:97:in block in load_rakefile'
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:179:in standard_exception_handling' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:96:in load_rakefile'
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:80:in block in run' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:179:in standard_exception_handling'
remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:78:in run' remote: ! /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/exe/rake:27:in <top (required)>'
remote: ! vendor/bundle/bin/rake:17:in load' remote: ! vendor/bundle/bin/rake:17:in <main>'
remote: !
remote: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/helpers/rake_runner.rb:106:in load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError) remote: ensure you can run $ bundle exec rake -Pagainst your app remote: and using the production group of your Gemfile. remote: rake aborted! remote: LoadError: cannot load such file -- /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/config/application remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/Rakefile:4:inrequire_relative'
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/Rakefile:4:in <top (required)>' remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in load
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/rake_module.rb:29:in load_rakefile' remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:688:in raw_load_rakefile'
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:97:in block in load_rakefile' remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:179:in standard_exception_handling'
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:96:in load_rakefile' remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:80:in block in run'
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:179:in standard_exception_handling' remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/lib/rake/application.rb:78:in run'
remote: /tmp/build_c37c7cdffbdf85e53ec652adbf499dae/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/exe/rake:27:in <top (required)>' remote: vendor/bundle/bin/rake:17:in load'
remote: vendor/bundle/bin/rake:17:in <main>' remote: from /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/ruby.rb:756:in rake'
.
.
.
/app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/bin/support/ruby_compile:15:in `<main>'
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to secret-cove-19812.
remote:
To https://git.heroku.com/secret-cove-19812.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/secret-cove-19812.git'

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

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

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

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

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

gouf

2017/09/20 17:17

エラーメッセージのとおり、Rakefile 4行目前後に文法エラーは見られませんか? 修正した場合に変化は見られますか?
yuccaaaa

2017/09/21 12:28

ありがとうございます!原因がよくわからなかったのですが、configのフォルダがなぜかファイルと認識されてました。。改めて作成し直したところ、今度は問題なくデプロイできました!!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

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

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

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問