ターミナル上のコマンドで、Herokuにアプリをアップロードしたいのですが、以下のコマンドを入れて処理をしようとしたところで、エラーが出てしまいます。
ターミナルのコマンド
$ git push heroku master
出てくるエラー文(長文失礼致します)
Counting objects: 267, done. Delta compression using up to 4 threads. Compressing objects: 100% (230/230), done. Writing objects: 100% (267/267), 10.15 MiB | 194.00 KiB/s, done. Total 267 (delta 48), 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.13.7 . . .(途中割愛) . remote: I, [2017-05-31T09:09:47.726572 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/bg-2e1820a6fb11e1aa58f0a96f92580c30.jpg remote: I, [2017-05-31T09:09:47.730019 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/bg_main-f4f0369fddca4b90d08d739fbf597904.png remote: I, [2017-05-31T09:09:47.732836 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/bg_main2-285a40cbdbc88ad6edfe65f63ea96e5b.png remote: I, [2017-05-31T09:09:47.734382 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/childlent_logo-340f69130b417a6c64dbfad0b95d9cfc.gif remote: I, [2017-05-31T09:09:47.735723 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/childlent_logo-4f51cc2a6e151da93f6b2e6803d329c5.png remote: I, [2017-05-31T09:09:47.737055 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/color_btn-2075fc8eae70a8186369e2c692989a75.png remote: I, [2017-05-31T09:09:47.738327 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/default-5fc308960aa058189746bd633c448a6c.png remote: I, [2017-05-31T09:09:47.740010 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/icon_heart-3af44e9a899bb2897794c892dde746c7.svg remote: I, [2017-05-31T09:09:47.741765 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/icon_red_heart-6ab53063eecec9c6c41043683168ab13.svg remote: I, [2017-05-31T09:09:47.743144 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/katachi_btn-4ff74882475cfd70500c4d5c9a9d1ae4.png remote: I, [2017-05-31T09:09:47.744533 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/logo-a272d6965f4cff361586ef6ab0044c60.png remote: I, [2017-05-31T09:09:47.745823 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/lovely_btn-1581b962558a92e6b057fd00e89568e4.png remote: I, [2017-05-31T09:09:47.747136 #1194] INFO -- : Writing /tmp/build_bc4d415d1a16da60965ea731b6281624/public/assets/pretty_btn-5cfa336e25dfd4370d7b4f694815b088.png remote: rake aborted! remote: ExecJS::RuntimeError: SyntaxError: Unterminated multiline comment remote: (in /tmp/build_bc4d415d1a16da60965ea731b6281624/app/assets/javascripts/application.js) remote: JS_Parse_Error.Object.defineProperty.get ((execjs):3538:621) remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:47:in `rescue in block in call' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:44:in `block in call' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:75:in `block in lock' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:73:in `Locker' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:73:in `lock' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:43:in `call' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/uglifier-3.2.0/lib/uglifier.rb:195:in `run_uglifyjs' remote: /tmp/build_bc4d415d1a16da60965ea731b6281624/vendor/bundle/ruby/2.3.0/gems/uglifier-3.2.0/lib/uglifier.rb:157:in `compile' . . .(途中割愛) . remote: V8::Error: Unterminated multiline comment remote: at js_error (<eval>:3623:12181) remote: at parse_error (<eval>:3623:14198) remote: at <eval>:3623:18901 remote: at handle_slash (<eval>:3623:18390) remote: at next_token (<eval>:3623:19517) remote: at next (<eval>:3623:21711) remote: at semicolon (<eval>:3623:22564) remote: at simple_statement (<eval>:3623:25718) remote: at <eval>:3623:23288 remote: at <eval>:3623:22787 . . .(途中割愛) . remote: Tasks: TOP => assets:precompile remote: (See full trace by running task with --trace) remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to shrouded-shelf-36379. remote: To https://git.heroku.com/shrouded-shelf-36379.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/shrouded-shelf-36379.git'
Gemfileの内容
Gemfileの内容
1source 'https://rubygems.org' 2 3 4# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 5gem 'rails', '4.2.6' 6# Use mysql as the database for Active Record 7gem 'mysql2', '0.3.18' 8# Use SCSS for stylesheets 9gem 'sass-rails', '~> 4.0.2' 10# Use Uglifier as compressor for JavaScript assets 11gem 'uglifier', '>= 1.3.0' 12# Use CoffeeScript for .coffee assets and views 13gem 'coffee-rails', '~> 4.1.0' 14# See https://github.com/rails/execjs#readme for more supported runtimes 15# gem 'therubyracer', platforms: :ruby 16 17# Use jquery as the JavaScript library 18gem 'jquery-rails' 19# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 20gem 'turbolinks' 21# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 22gem 'jbuilder', '~> 2.0' 23# bundle exec rake doc:rails generates the API under doc/api. 24gem 'sdoc', '~> 0.4.0', group: :doc 25 26# Use ActiveModel has_secure_password 27# gem 'bcrypt', '~> 3.1.7' 28 29# Use Unicorn as the app server 30# gem 'unicorn' 31 32# Use Capistrano for deployment 33# gem 'capistrano-rails', group: :development 34 35group :development, :test do 36 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 37 gem 'byebug' 38end 39 40group :development do 41 # Access an IRB console on exception pages or by using <%= console %> in views 42 gem 'web-console', '~> 2.0' 43 44 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 45 gem 'spring' 46end 47 48 49gem 'pry-rails' 50gem 'compass-rails', '~> 2.0' 51gem 'sprockets', '2.11.0' 52gem 'devise' 53gem 'paperclip' 54gem 'kaminari' 55gem 'therubyracer' 56gem 'twitter-bootstrap-rails' 57gem 'bootstrap-material-design', '0.1.4' 58 59gem 'carrierwave' 60 61gem 'execjs' 62 63group :production do 64 gem 'rails_12factor' 65end
application.jsの内容
application.js
1// This is a manifest file that'll be compiled into application.js, which will include all the files 2// listed below. 3// 4// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, 5// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. 6// 7// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the 8// compiled file. 9// 10// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details 11// about supported directives. 12// 13//= require jquery 14//= require jquery_ujs 15//= require twitter/bootstrap 16//= require bootstrap-material-design 17//= require turbolinks 18//= require bootstrap 19//= require_tree . 20 21$(function(){ 22 $.material.init(); 23});
WARNINGメッセージ
WARNINGメッセージ
1###### WARNING: 2 You have not declared a Ruby version in your Gemfile. 3 To set your Ruby version add this line to your Gemfile: 4 ruby '2.3.4' 5 # See https://devcenter.heroku.com/articles/ruby-versions for more information. 6###### WARNING: 7 No Procfile detected, using the default web server. 8 We recommend explicitly declaring how to boot your server process via a Procfile. 9 https://devcenter.heroku.com/articles/ruby-default-web-server
様々なエラーが出ており、どこから直していけばいいのか、なかなか検討がつきません。
もし、少しでも対策がありましたらご教示頂けますと幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/31 22:18 編集
2017/05/31 22:19
2017/06/01 09:39
2017/06/01 09:47
2017/06/01 10:16
2017/06/12 11:59