肖威洞察 | 关于 heroku 环境部署的问题

Wei Xiao
19 min readOct 19, 2019

--

xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ ruby -v
ruby 2.3.1p112 (2016–04–26 revision 54768) [x86_64-darwin14]
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ rvm install 2.4.4
Already installed ruby-2.4.4.
To reinstall use:

rvm reinstall ruby-2.4.4

xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ ruby -v
ruby 2.4.4p296 (2018–03–28 revision 63013) [x86_64-darwin17]
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git push heroku master
Counting objects: 91, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (76/76), done.
Writing objects: 100% (91/91), 22.21 KiB | 2.02 MiB/s, done.
Total 91 (delta 4), 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: Command: ‘set -o pipefail; curl -L — fail — retry 5 — retry-delay 1 — connect-timeout 3 — max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.3.1.tgz -s -o — | tar zxf — ‘ failed on attempt 1 of 3.
remote: Command: ‘set -o pipefail; curl -L — fail — retry 5 — retry-delay 1 — connect-timeout 3 — max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.3.1.tgz -s -o — | tar zxf — ‘ failed on attempt 2 of 3.
remote:
remote: !
remote: ! An error occurred while installing ruby-2.3.1
remote: !
remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version
remote: ! of Ruby on the Heroku-18 stack can found at:
remote: !
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to enigmatic-ravine-69283.
remote:
To https://git.heroku.com/enigmatic-ravine-69283.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/enigmatic-ravine-69283.git'
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git ad .
git: ‘ad’ is not a git command. See ‘git — help’.

The most similar commands are
add
am
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git add .
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git commit -m “edit ruby 2.4.4p296”
[master 60bb273] edit ruby 2.4.4p296
3 files changed, 40 insertions(+), 2 deletions(-)
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git push heroku master
Counting objects: 96, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (81/81), done.
Writing objects: 100% (96/96), 23.24 KiB | 1.94 MiB/s, done.
Total 96 (delta 8), 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.17.3
remote: Running: bundle install — without development:test — path vendor/bundle — binstubs vendor/bundle/bin -j4 — deployment
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: Fetching gem metadata from https://rubygems.org/............
remote: Fetching rake 13.0.0
remote: Installing rake 13.0.0
remote: Fetching concurrent-ruby 1.1.5
remote: Fetching minitest 5.12.2
remote: Fetching thread_safe 0.3.6
remote: Installing minitest 5.12.2
remote: Installing thread_safe 0.3.6
remote: Installing concurrent-ruby 1.1.5
remote: Fetching builder 3.2.3
remote: Installing builder 3.2.3
remote: Fetching erubi 1.9.0
remote: Fetching mini_portile2 2.4.0
remote: Installing erubi 1.9.0
remote: Installing mini_portile2 2.4.0
remote: Fetching crass 1.0.5
remote: Installing crass 1.0.5
remote: Fetching rack 2.0.7
remote: Fetching nio4r 2.5.2
remote: Installing nio4r 2.5.2 with native extensions
remote: Installing rack 2.0.7
remote: Fetching websocket-extensions 0.1.4
remote: Installing websocket-extensions 0.1.4
remote: Fetching mini_mime 1.0.2
remote: Installing mini_mime 1.0.2
remote: Fetching arel 9.0.0
remote: Installing arel 9.0.0
remote: Fetching mimemagic 0.3.3
remote: Fetching msgpack 1.3.1
remote: Installing mimemagic 0.3.3
remote: Installing msgpack 1.3.1 with native extensions
remote: Using bundler 1.17.3
remote: Fetching coffee-script-source 1.12.2
remote: Installing coffee-script-source 1.12.2
remote: Fetching execjs 2.7.0
remote: Installing execjs 2.7.0
remote: Fetching method_source 0.9.2
remote: Installing method_source 0.9.2
remote: Fetching thor 0.20.3
remote: Installing thor 0.20.3
remote: Fetching ffi 1.11.1
remote: Installing ffi 1.11.1 with native extensions
remote: Fetching pg 0.18.4
remote: Installing pg 0.18.4 with native extensions
remote: Fetching puma 3.12.1
remote: Installing puma 3.12.1 with native extensions
remote: Fetching rb-fsevent 0.10.3
remote: Installing rb-fsevent 0.10.3
remote: Fetching tilt 2.0.10
remote: Installing tilt 2.0.10
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 nokogiri 1.10.4
remote: Installing nokogiri 1.10.4 with native extensions
remote: Fetching i18n 1.7.0
remote: Installing i18n 1.7.0
remote: Fetching websocket-driver 0.7.1
remote: Installing websocket-driver 0.7.1 with native extensions
remote: Fetching mail 2.7.1
remote: Installing mail 2.7.1
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 marcel 0.3.3
remote: Installing marcel 0.3.3
remote: Fetching coffee-script 2.4.1
remote: Installing coffee-script 2.4.1
remote: Fetching uglifier 4.2.0
remote: Installing uglifier 4.2.0
remote: Fetching bootsnap 1.4.5
remote: Installing bootsnap 1.4.5 with native extensions
remote: Fetching rb-inotify 0.10.0
remote: Installing rb-inotify 0.10.0
remote: Fetching turbolinks 5.2.1
remote: Installing turbolinks 5.2.1
remote: Fetching activesupport 5.2.3
remote: Installing activesupport 5.2.3
remote: Fetching loofah 2.3.0
remote: Installing loofah 2.3.0
remote: Fetching sass-listen 4.0.0
remote: Installing sass-listen 4.0.0
remote: Fetching rails-dom-testing 2.0.3
remote: Installing rails-dom-testing 2.0.3
remote: Fetching globalid 0.4.2
remote: Fetching activemodel 5.2.3
remote: Installing globalid 0.4.2
remote: Installing activemodel 5.2.3
remote: Fetching jbuilder 2.9.1
remote: Installing jbuilder 2.9.1
remote: Fetching rails-html-sanitizer 1.3.0
remote: Fetching sass 3.7.4
remote: Installing rails-html-sanitizer 1.3.0
remote: Installing sass 3.7.4
remote: Fetching activejob 5.2.3
remote: Installing activejob 5.2.3
remote: Fetching activerecord 5.2.3
remote: Fetching actionview 5.2.3
remote: Installing actionview 5.2.3
remote: Installing activerecord 5.2.3
remote: Fetching actionpack 5.2.3
remote: Installing actionpack 5.2.3
remote: Fetching actioncable 5.2.3
remote: Fetching actionmailer 5.2.3
remote: Fetching activestorage 5.2.3
remote: Installing actionmailer 5.2.3
remote: Installing actioncable 5.2.3
remote: Installing activestorage 5.2.3
remote: Fetching railties 5.2.3
remote: Fetching sprockets-rails 3.2.1
remote: Installing railties 5.2.3
remote: Installing sprockets-rails 3.2.1
remote: Fetching rails 5.2.3
remote: Fetching sass-rails 5.0.7
remote: Fetching coffee-rails 4.2.2
remote: Installing rails 5.2.3
remote: Installing coffee-rails 4.2.2
remote: Installing sass-rails 5.0.7
remote: Bundle complete! 19 Gemfile dependencies, 60 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 i18n:
remote:
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
remote: But that may break your application.
remote:
remote: Please check your Rails app for ‘config.i18n.fallbacks = true’.
remote: If you’re using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
remote: ‘config.i18n.fallbacks = [I18n.default_locale]’.
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
remote:
remote: For more info see:
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
remote:
remote: Post-install message from sass:
remote:
remote: Ruby Sass has reached end-of-life and should no longer be used.
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: https://sass-lang.com/blog/posts/7828841
remote:
remote: Bundle completed (51.64s)
remote: Cleaning up the bundler cache.
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: — — -> Installing node-v10.15.3-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, [2019–10–19T12:30:50.431381 #1521] INFO — : Writing /tmp/build_3270e2f8e4cf261bce74fe19ed6bd619/public/assets/application-d25752b9ab667418e852ef42e1f03f47bd57a7d382318572379f2740fd4b6c95.js
remote: I, [2019–10–19T12:30:50.431848 #1521] INFO — : Writing /tmp/build_3270e2f8e4cf261bce74fe19ed6bd619/public/assets/application-d25752b9ab667418e852ef42e1f03f47bd57a7d382318572379f2740fd4b6c95.js.gz
remote: I, [2019–10–19T12:30:50.437900 #1521] INFO — : Writing /tmp/build_3270e2f8e4cf261bce74fe19ed6bd619/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css
remote: I, [2019–10–19T12:30:50.438241 #1521] INFO — : Writing /tmp/build_3270e2f8e4cf261bce74fe19ed6bd619/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz
remote: Asset precompilation completed (3.41s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: — — -> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: Detecting rails configuration failed
remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote:
remote:
remote: ###### WARNING:
remote:
remote: We detected that some binary dependencies required to
remote: use all the preview features of Active Storage are not
remote: present on this system.
remote:
remote: For more information please see:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote:
remote: ###### WARNING:
remote:
remote: There is a more recent Ruby version available for you to use:
remote:
remote: 2.4.9
remote:
remote: The latest version will include security and bug fixes, we always recommend
remote: running the latest version of your minor release.
remote:
remote: Please upgrade your Ruby version.
remote:
remote: For all available Ruby versions see:
remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:
remote:
remote: ###### WARNING:
remote:
remote: Potential EOL Ruby Version
remote:
remote: You are using a Ruby version that has either reached its End of Life (EOL)
remote: or will reach its End of Life on December 25th of this year.
remote:
remote: We suggest you upgrade to Ruby 2.5.x or later
remote:
remote: Once a Ruby version becomes EOL, it will no longer receive
remote: security updates from Ruby core and may have serious vulnerabilities.
remote:
remote: Please upgrade your Ruby version.
remote:
remote: For a list of supported Ruby versions see:
remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:
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:
remote: — — -> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web
remote:
remote: — — -> Compressing…
remote: Done: 47.3M
remote: — — -> Launching…
remote: Released v6
remote: https://enigmatic-ravine-69283.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy… done.
To https://git.heroku.com/enigmatic-ravine-69283.git
* [new branch] master -> master
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ herkou open
zsh: command not found: herkou
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ heroku open
▸ heroku-cli: update available from 6.15.18-fdf2097 to 6.99.0-ec9edad
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ rail s
zsh: command not found: rail
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ rails s
Could not find selenium-webdriver-3.142.6 in any of the sources
Run `bundle install` to install missing gems.
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/............
Using rake 13.0.0
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.12.2
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.4
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.3.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using public_suffix 4.0.1
Using addressable 2.7.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.8.1
Using msgpack 1.3.1
Using bootsnap 1.4.5
Using bundler 1.16.6
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.15.1
Using childprocess 3.0.0
Using chromedriver-helper 2.1.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Using coffee-rails 4.2.2
Using ffi 1.11.1
Using jbuilder 2.9.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using pg 0.18.4
Using puma 3.12.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Using rubyzip 1.3.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Fetching selenium-webdriver 3.142.6
^C% ✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/…………
Using rake 13.0.0
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.12.2
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.4
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.3.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using public_suffix 4.0.1
Using addressable 2.7.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.8.1
Using msgpack 1.3.1
Using bootsnap 1.4.5
Using bundler 1.16.6
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.15.1
Using childprocess 3.0.0
Using chromedriver-helper 2.1.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Using coffee-rails 4.2.2
Using ffi 1.11.1
Using jbuilder 2.9.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using pg 0.18.4
Using puma 3.12.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Using rubyzip 1.3.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Fetching selenium-webdriver 3.142.6
Installing selenium-webdriver 3.142.6
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching sqlite3 1.4.1
Installing sqlite3 1.4.1 with native extensions
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching uglifier 4.2.0
^C% ✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/…………
Using rake 13.0.0
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.12.2
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.4
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.3.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using public_suffix 4.0.1
Using addressable 2.7.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.8.1
Using msgpack 1.3.1
Using bootsnap 1.4.5
Using bundler 1.16.6
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.15.1
Using childprocess 3.0.0
Using chromedriver-helper 2.1.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Using coffee-rails 4.2.2
Using ffi 1.11.1
Using jbuilder 2.9.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using pg 0.18.4
Using puma 3.12.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Using rubyzip 1.3.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Using selenium-webdriver 3.142.6
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.4.1
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Fetching uglifier 4.2.0
^C% ✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ rails s
Could not find uglifier-4.2.0 in any of the sources
Run `bundle install` to install missing gems.
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/…………
Using rake 13.0.0
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.12.2
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.4
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.3.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using public_suffix 4.0.1
Using addressable 2.7.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using bindex 0.8.1
Using msgpack 1.3.1
Using bootsnap 1.4.5
Using bundler 1.16.6
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.15.1
Using childprocess 3.0.0
Using chromedriver-helper 2.1.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Using coffee-rails 4.2.2
Using ffi 1.11.1
Using jbuilder 2.9.1
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using pg 0.18.4
Using puma 3.12.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Using rubyzip 1.3.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Using selenium-webdriver 3.142.6
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.4.1
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Fetching uglifier 4.2.0
Installing uglifier 4.2.0
Fetching web-console 3.7.0
Installing web-console 3.7.0
Bundle complete! 19 Gemfile dependencies, 79 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ rails s
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode…
* Version 3.12.1 (ruby 2.4.4-p296), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop
Started GET “/” for ::1 at 2019–10–19 20:45:46 +0800
Processing by Rails::WelcomeController#index as HTML
Rendering /Users/xiaowei/.rvm/gems/ruby-2.4.4/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb
Rendered /Users/xiaowei/.rvm/gems/ruby-2.4.4/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (8.6ms)
Completed 200 OK in 56ms (Views: 31.8ms | ActiveRecord: 0.0ms)

^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019–10–19 20:45:50 +0800 ===
- Goodbye!
Exiting
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git add .
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git commit -m “bundle install”
On branch master
Your branch is ahead of ‘origin/master’ by 1 commit.
(use “git push” to publish your local commits)

nothing to commit, working tree clean
✘ xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.38 KiB | 1.38 MiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/xiaoweiruby/toy_app.git
69173b4..60bb273 master -> master
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git push heroku master
Everything up-to-date
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ heroku open
▸ heroku-cli: update available from 6.15.18-fdf2097 to 6.99.0-ec9edad
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ rails s
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode…
* Version 3.12.1 (ruby 2.4.4-p296), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop
Started GET “/” for ::1 at 2019–10–19 20:51:47 +0800

SyntaxError (/Users/xiaowei/rubyspace/toy_app/app/controllers/application_controller.rb:4: syntax error, unexpected end-of-input, expecting keyword_end):

app/controllers/application_controller.rb:4: syntax error, unexpected end-of-input, expecting keyword_end
^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019–10–19 20:52:07 +0800 ===
- Goodbye!
Exiting
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ rails s
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode…
* Version 3.12.1 (ruby 2.4.4-p296), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop
Started GET “/” for ::1 at 2019–10–19 20:52:13 +0800
Processing by ApplicationController#hello as HTML
Rendering html template
Rendered html template (0.0ms)
Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.0ms)

^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019–10–19 20:52:16 +0800 ===
- Goodbye!
Exiting
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git add .
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master± ⮀ git commit -m “add def hello”
[master b1b3a5b] add def hello
2 files changed, 4 insertions(+)
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git push
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 654 bytes | 654.00 KiB/s, done.
Total 7 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
To https://github.com/xiaoweiruby/toy_app.git
60bb273..b1b3a5b master -> master
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ git push heroku master
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 654 bytes | 654.00 KiB/s, done.
Total 7 (delta 4), 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.4.4
remote: — — -> Installing dependencies using bundler 1.17.3
remote: Running: bundle install — without development:test — path vendor/bundle — binstubs vendor/bundle/bin -j4 — deployment
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: Using rake 13.0.0
remote: Using concurrent-ruby 1.1.5
remote: Using i18n 1.7.0
remote: Using minitest 5.12.2
remote: Using thread_safe 0.3.6
remote: Using tzinfo 1.2.5
remote: Using activesupport 5.2.3
remote: Using builder 3.2.3
remote: Using erubi 1.9.0
remote: Using mini_portile2 2.4.0
remote: Using nokogiri 1.10.4
remote: Using rails-dom-testing 2.0.3
remote: Using crass 1.0.5
remote: Using loofah 2.3.0
remote: Using rails-html-sanitizer 1.3.0
remote: Using actionview 5.2.3
remote: Using rack 2.0.7
remote: Using rack-test 1.1.0
remote: Using actionpack 5.2.3
remote: Using nio4r 2.5.2
remote: Using websocket-extensions 0.1.4
remote: Using websocket-driver 0.7.1
remote: Using actioncable 5.2.3
remote: Using globalid 0.4.2
remote: Using activejob 5.2.3
remote: Using mini_mime 1.0.2
remote: Using mail 2.7.1
remote: Using actionmailer 5.2.3
remote: Using activemodel 5.2.3
remote: Using arel 9.0.0
remote: Using activerecord 5.2.3
remote: Using mimemagic 0.3.3
remote: Using marcel 0.3.3
remote: Using activestorage 5.2.3
remote: Using msgpack 1.3.1
remote: Using bootsnap 1.4.5
remote: Using bundler 1.17.3
remote: Using coffee-script-source 1.12.2
remote: Using execjs 2.7.0
remote: Using coffee-script 2.4.1
remote: Using method_source 0.9.2
remote: Using thor 0.20.3
remote: Using railties 5.2.3
remote: Using coffee-rails 4.2.2
remote: Using ffi 1.11.1
remote: Using jbuilder 2.9.1
remote: Using pg 0.18.4
remote: Using puma 3.12.1
remote: Using sprockets 3.7.2
remote: Using sprockets-rails 3.2.1
remote: Using rails 5.2.3
remote: Using rb-fsevent 0.10.3
remote: Using rb-inotify 0.10.0
remote: Using sass-listen 4.0.0
remote: Using sass 3.7.4
remote: Using tilt 2.0.10
remote: Using sass-rails 5.0.7
remote: Using turbolinks-source 5.2.0
remote: Using turbolinks 5.2.1
remote: Using uglifier 4.2.0
remote: Bundle complete! 19 Gemfile dependencies, 60 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into `./vendor/bundle`
remote: Bundle completed (0.36s)
remote: Cleaning up the bundler cache.
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock — add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
remote: — — -> Installing node-v10.15.3-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: Asset precompilation completed (1.18s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: — — -> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: You set your `config.active_storage.service` to :local in production.
remote: If you are uploading files to this app, they will not persist after the app
remote: is restarted, on one-off dynos, or if the app has multiple dynos.
remote: Heroku applications have an ephemeral file system. To
remote: persist uploaded files, please use a service such as S3 and update your Rails
remote: configuration.
remote:
remote: For more information can be found in this article:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote:
remote: ###### WARNING:
remote:
remote: We detected that some binary dependencies required to
remote: use all the preview features of Active Storage are not
remote: present on this system.
remote:
remote: For more information please see:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote:
remote: ###### WARNING:
remote:
remote: There is a more recent Ruby version available for you to use:
remote:
remote: 2.4.9
remote:
remote: The latest version will include security and bug fixes, we always recommend
remote: running the latest version of your minor release.
remote:
remote: Please upgrade your Ruby version.
remote:
remote: For all available Ruby versions see:
remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:
remote:
remote: ###### WARNING:
remote:
remote: Potential EOL Ruby Version
remote:
remote: You are using a Ruby version that has either reached its End of Life (EOL)
remote: or will reach its End of Life on December 25th of this year.
remote:
remote: We suggest you upgrade to Ruby 2.5.x or later
remote:
remote: Once a Ruby version becomes EOL, it will no longer receive
remote: security updates from Ruby core and may have serious vulnerabilities.
remote:
remote: Please upgrade your Ruby version.
remote:
remote: For a list of supported Ruby versions see:
remote: https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:
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:
remote: — — -> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web
remote:
remote: — — -> Compressing…
remote: Done: 48M
remote: — — -> Launching…
remote: Released v7
remote: https://enigmatic-ravine-69283.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy… done.
To https://git.heroku.com/enigmatic-ravine-69283.git
60bb273..b1b3a5b master -> master
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀ heroku open
▸ heroku-cli: update available from 6.15.18-fdf2097 to 6.99.0-ec9edad
xiaowei@xiaoweimac ⮀ ~/rubyspace/toy_app ⮀ ⭠ master ⮀

--

--

No responses yet