• 以下是 Heroku 上的,表明部署是成功的,但是 App 打开后就显示 Application error,真的是莫名其妙? Activity Feed [email protected] [email protected]: Deployed 6aeb03fb Today at 10:18 PM · v9 [email protected] [email protected]: Build succeeded Today at 10:17 PM · View build log

    以下是所有的 Heroku 上的所有日志:

    ----> Ruby app detected
    -----> Compiling Ruby/Rails
    -----> Using Ruby version: ruby-2.5.3
    -----> 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.17.2). 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/.
           Using rake 12.3.2
           Using concurrent-ruby 1.1.5
           Using minitest 5.11.3
           Using thread_safe 0.3.6
           Using builder 3.2.3
           Using erubi 1.8.0
           Using mini_portile2 2.4.0
           Using crass 1.0.4
           Using rack 2.0.6
           Using nio4r 2.3.1
           Using websocket-extensions 0.1.3
           Using mini_mime 1.0.1
           Using arel 8.0.0
           Using bundler 1.15.2
           Using coffee-script-source 1.12.2
           Using execjs 2.7.0
           Using method_source 0.9.2
           Using thor 0.20.3
           Using ffi 1.10.0
           Using multi_json 1.13.1
           Fetching pg 0.20.0
           Using puma 3.9.1
           Using rb-fsevent 0.10.3
           Using tilt 2.0.9
           Using turbolinks-source 5.2.0
           Using i18n 1.6.0
           Using tzinfo 1.2.5
           Using nokogiri 1.10.1
           Using rack-test 1.1.0
           Using sprockets 3.7.2
           Using mail 2.7.1
           Using websocket-driver 0.6.5
           Using coffee-script 2.4.1
           Using uglifier 3.2.0
           Using rb-inotify 0.10.0
           Using turbolinks 5.0.1
           Using activesupport 5.1.6
           Using loofah 2.2.3
           Using rails-dom-testing 2.0.3
           Using globalid 0.4.2
           Using activemodel 5.1.6
           Using jbuilder 2.7.0
           Using rails-html-sanitizer 1.0.4
           Using sass-listen 4.0.0
           Using activejob 5.1.6
           Using activerecord 5.1.6
           Using actionview 5.1.6
           Using sass 3.7.3
           Using actionpack 5.1.6
           Using actioncable 5.1.6
           Using actionmailer 5.1.6
           Using railties 5.1.6
           Using sprockets-rails 3.2.1
           Using coffee-rails 4.2.2
           Using jquery-rails 4.3.1
           Using rails 5.1.6
           Using sass-rails 5.0.6
           Installing pg 0.20.0 with native extensions
           Bundle complete! 16 Gemfile dependencies, 57 gems now installed.
           Gems in the groups development and test were not installed.
           Bundled gems are installed into ./vendor/bundle.
           Bundle completed (16.72s)
           Cleaning up the bundler cache.
           Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
           The latest bundler is 2.0.1, but you are currently running 1.15.2.
           To update, run `gem install bundler`
    -----> Installing node-v10.14.1-linux-x64
    -----> Detecting rake tasks
    -----> Preparing app for Rails asset pipeline
           Running: rake assets:precompile
           Yarn executable was not detected in the system.
           Download Yarn at https://yarnpkg.com/en/docs/install
           Asset precompilation completed (1.69s)
           Cleaning assets
           Running: rake assets:clean
    -----> Detecting rails configuration
    ###### WARNING:
           You have not declared a Ruby version in your Gemfile.
           To set your Ruby version add this line to your Gemfile:
           ruby '2.5.3'
           # See https://devcenter.heroku.com/articles/ruby-versions for more information.
    ###### WARNING:
           Detecting rails configuration failed
           set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
    -----> Discovering process types
           Procfile declares types     -> web
           Default types for buildpack -> console, rake
    -----> Compressing...
           Done: 35.3M
    -----> Launching...
           Released v9
           https://evening-headland-50906.herokuapp.com/ deployed to Heroku
    
  • 好运啊

  • 没有错误。没用

  • git push heroku master 后的记录只有几个 warning,没有错误 remote: Verifying deploy... done.

  • 是在 Activity 里看吗?貌似这里只有一些上传的信息?

  • 多谢,我开始搜索来着,但是开始没有搜到合适的内容,发完后,看了一下“部署”的帖子才看到