Closed ekrc-1 closed 6 years ago
宜しくお願いします!
よろしくお願いします!
デプロイ→アプリを利用可能な状態にすること https://www.weblio.jp/content/%E3%83%87%E3%83%97%E3%83%AD%E3%82%A4
Apache,Nginx:Webサーバ
Bundler could not find compatible versions for gem "activesupport": In snapshot (Gemfile.lock): activesupport (= 5.1.4)
In Gemfile: rails (= 5.1.6) was resolved to 5.1.6, which depends on activesupport (= 5.1.6)
sass-rails (= 5.0.6) was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0) was resolved to 5.1.4, which depends on
activesupport (= 5.1.4)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundle updateしたらインストールできました!
Herokuコマンドラインクライアント:herokuをコマンドラインで操作できる(そのまんま)
error: failed to push some refs to 'https://git.heroku.com/limitless-crag-24896.git' ていうのが出てるため、調査中です。
Counting objects: 91, done.
Compressing objects: 100% (77/77), done.
Writing objects: 100% (91/91), 20.94 KiB | 1.31 MiB/s, done.
Total 91 (delta 6), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.4.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.2). We suggest you upgrade to the latest version of Bundler by running gem install bundler
.
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching version metadata from https://rubygems.org/..
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Fetching rake 12.3.1
remote: Fetching concurrent-ruby 1.0.5
remote: Fetching minitest 5.11.3
remote: Installing minitest 5.11.3
remote: Installing rake 12.3.1
remote: Installing concurrent-ruby 1.0.5
remote: Fetching thread_safe 0.3.6
remote: Installing thread_safe 0.3.6
remote: Fetching builder 3.2.3
remote: Installing builder 3.2.3
remote: Fetching erubi 1.7.1
remote: Fetching mini_portile2 2.3.0
remote: Installing erubi 1.7.1
remote: Installing mini_portile2 2.3.0
remote: Fetching crass 1.0.4
remote: Fetching rack 2.0.5
remote: Installing crass 1.0.4
remote: Fetching nio4r 2.3.1
remote: Installing rack 2.0.5
remote: Installing nio4r 2.3.1 with native extensions
remote: Fetching websocket-extensions 0.1.3
remote: Installing websocket-extensions 0.1.3
remote: Fetching mini_mime 1.0.1
remote: Installing mini_mime 1.0.1
remote: Fetching arel 8.0.0
remote: Installing arel 8.0.0
remote: Using bundler 1.15.2
remote: Fetching coffee-script-source 1.12.2
remote: Fetching execjs 2.7.0
remote: Installing execjs 2.7.0
remote: Installing coffee-script-source 1.12.2
remote: Fetching method_source 0.9.0
remote: Fetching thor 0.20.0
remote: Installing method_source 0.9.0
remote: Installing thor 0.20.0
remote: Fetching ffi 1.9.25
remote: Fetching multi_json 1.13.1
remote: Installing multi_json 1.13.1
remote: Installing ffi 1.9.25 with native extensions
remote: Fetching pg 0.20.0
remote: Installing pg 0.20.0 with native extensions
remote: Fetching puma 3.9.1
remote: Installing puma 3.9.1 with native extensions
remote: Fetching rb-fsevent 0.10.3
remote: Installing rb-fsevent 0.10.3
remote: Fetching tilt 2.0.8
remote: Installing tilt 2.0.8
remote: Fetching turbolinks-source 5.2.0
remote: Installing turbolinks-source 5.2.0
remote: Fetching tzinfo 1.2.5
remote: Installing tzinfo 1.2.5
remote: Fetching i18n 1.1.0
remote: Installing i18n 1.1.0
remote: Fetching nokogiri 1.8.4
remote: Installing nokogiri 1.8.4 with native extensions
remote: Fetching websocket-driver 0.6.5
remote: Installing websocket-driver 0.6.5 with native extensions
remote: Fetching mail 2.7.0
remote: Installing mail 2.7.0
remote: Fetching rack-test 1.1.0
remote: Installing rack-test 1.1.0
remote: Fetching sprockets 3.7.2
remote: Installing sprockets 3.7.2
remote: Fetching coffee-script 2.4.1
remote: Installing coffee-script 2.4.1
remote: Fetching uglifier 3.2.0
remote: Installing uglifier 3.2.0
remote: Fetching turbolinks 5.0.1
remote: Installing turbolinks 5.0.1
remote: Fetching activesupport 5.1.6
remote: Installing activesupport 5.1.6
remote: Fetching rb-inotify 0.9.10
remote: Installing rb-inotify 0.9.10
remote: Fetching globalid 0.4.1
remote: Installing globalid 0.4.1
remote: Fetching activemodel 5.1.6
remote: Installing activemodel 5.1.6
remote: Fetching jbuilder 2.7.0
remote: Installing jbuilder 2.7.0
remote: Fetching sass-listen 4.0.0
remote: Installing sass-listen 4.0.0
remote: Fetching activejob 5.1.6
remote: Installing activejob 5.1.6
remote: Fetching activerecord 5.1.6
remote: Installing activerecord 5.1.6
remote: Fetching sass 3.5.7
remote: Installing sass 3.5.7
remote: Fetching rails-dom-testing 2.0.3
remote: Fetching loofah 2.2.2
remote: Installing rails-dom-testing 2.0.3
remote: Installing loofah 2.2.2
remote: Fetching rails-html-sanitizer 1.0.4
remote: Installing rails-html-sanitizer 1.0.4
remote: Fetching actionview 5.1.6
remote: Installing actionview 5.1.6
remote: Fetching actionpack 5.1.6
remote: Installing actionpack 5.1.6
remote: Fetching actionmailer 5.1.6
remote: Fetching railties 5.1.6
remote: Fetching actioncable 5.1.6
remote: Installing actionmailer 5.1.6
remote: Installing actioncable 5.1.6
remote: Installing railties 5.1.6
remote: Fetching sprockets-rails 3.2.1
remote: Installing sprockets-rails 3.2.1
remote: Fetching jquery-rails 4.3.1
remote: Fetching coffee-rails 4.2.2
remote: Fetching rails 5.1.6
remote: Installing coffee-rails 4.2.2
remote: Installing rails 5.1.6
remote: Fetching sass-rails 5.0.6
remote: Installing sass-rails 5.0.6
remote: Installing jquery-rails 4.3.1
remote: Bundle complete! 16 Gemfile dependencies, 57 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Post-install message from sass:
remote:
remote: Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
remote:
remote: If you use Sass as a command-line tool, we recommend using Dart Sass, the new
remote: primary implementation: https://sass-lang.com/install
remote:
remote: If you use Sass as a plug-in for a Ruby web framework, we recommend using the
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
remote:
remote: * For more details, please refer to the Sass blog:
remote: http://sass.logdown.com/posts/7081811
remote:
remote: Bundle completed (33.24s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: I, [2018-08-27T12:25:02.896448 #1486] INFO -- : Writing /tmp/build_c518cb5f47ce59caef592dfb33b4b0f1/public/assets/application-7e084e44b9a13db0cda25bad2ac6fdbbfe31462ec93176e245cd0bcbc079f436.js
remote: I, [2018-08-27T12:25:02.897110 #1486] INFO -- : Writing /tmp/build_c518cb5f47ce59caef592dfb33b4b0f1/public/assets/application-7e084e44b9a13db0cda25bad2ac6fdbbfe31462ec93176e245cd0bcbc079f436.js.gz
remote: I, [2018-08-27T12:25:02.903860 #1486] INFO -- : Writing /tmp/build_c518cb5f47ce59caef592dfb33b4b0f1/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
remote: I, [2018-08-27T12:25:02.904328 #1486] INFO -- : Writing /tmp/build_c518cb5f47ce59caef592dfb33b4b0f1/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz
remote: Asset precompilation completed (3.03s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: -----> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: You have not declared a Ruby version in your Gemfile.
remote: To set your Ruby version add this line to your Gemfile:
remote: ruby '2.4.4'
remote: # See https://devcenter.heroku.com/articles/ruby-versions for more information.
remote:
remote: ###### WARNING:
remote:
remote: Detecting rails configuration failed
remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote:
remote: ###### WARNING:
remote:
remote: No Procfile detected, using the default web server.
remote: We recommend explicitly declaring how to boot your server process via a Procfile.
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web, worker
remote:
remote: -----> Compressing...
remote: Done: 32.9M
remote: -----> Launching...
remote: Released v5
remote: https://boiling-ridge-79494.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/boiling-ridge-79494.git
ローカルにない変更がheroku側にあったようです。 https://teratail.com/questions/12111
前の章の、
def hello
render html:"hello,world!"
end
をapplication_controllerに追加したら表示されました。。。
1.5.3 Herokuにデプロイする (2) まで
よろしくお願いします!