Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 部署并记录Ok,但使用Ruby on Rails在Heroku上创建空白页面_Ruby On Rails_Heroku - Fatal编程技术网

Ruby on rails 部署并记录Ok,但使用Ruby on Rails在Heroku上创建空白页面

Ruby on rails 部署并记录Ok,但使用Ruby on Rails在Heroku上创建空白页面,ruby-on-rails,heroku,Ruby On Rails,Heroku,我的应用程序今天运行得很好,但是,突然,没有任何部署,它开始只显示一个空白页面 这是我的构建日志 Bundle complete! 53 Gemfile dependencies, 157 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into ./vendor/bund

我的应用程序今天运行得很好,但是,突然,没有任何部署,它开始只显示一个空白页面

这是我的构建日志

          Bundle complete! 53 Gemfile dependencies, 157 gems now installed.
          Gems in the groups development and test were not installed.
          Bundled gems are installed into ./vendor/bundle.
          Bundle completed (6.56s)
          Cleaning up the bundler cache.
          Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.15.4). 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 (6.62s)
          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.3.4'
          # See https://devcenter.heroku.com/articles/ruby-versions for more information.
   ###### WARNING:
          We detected that some binary dependencies required to
          use all the preview features of Active Storage are not
          present on this system.

          For more information please see:
            https://devcenter.heroku.com/articles/active-storage-on-heroku

   ###### WARNING:
          No Procfile detected, using the default web server.
          We recommend explicitly declaring how to boot your server process via a Procfile.
          https://devcenter.heroku.com/articles/ruby-default-web-server
   -----> Discovering process types
          Procfile declares types     -> (none)
          Default types for buildpack -> console, rake, web
   -----> Compressing...
          Done: 92.2M
   -----> Launching...
          Released v173
          https://sculp-demo.herokuapp.com/ deployed to Heroku
如果我转到我的页面,检查服务器错误,我会得到:

Mar 28 07:38:55 sculp-demo app[web] INFO I, [2019-03-28T10:38:55.275948 #4]  INFO -- : [8234d15e-2cf4-4b23-b841-6c110a647c23]   Rendered static/index.html.erb within layouts/application (11.1ms)
        Mar 28 07:38:55 sculp-demo app[web] INFO I, [2019-03-28T10:38:55.276286 #4]  INFO -- : [8234d15e-2cf4-4b23-b841-6c110a647c23] Completed 200 OK in 71ms (ActiveRecord: 29.8ms)
        Mar 28 07:38:55 sculp-demo heroku[router] info at=info method=GET path="/favicon.ico" host=sculp-demo.herokuapp.com request_id=9da3602d-35e9-4a84-8f5d-6587b608dccd fwd="189.45.91.245" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 protocol=https
我已经重新部署了它,已经手动重启了Dynos


所以,看起来一切都在工作,而不是被渲染。我已经在Heroku上打开了一张罚单,但在我等待的时候,有人对如何检查是否是我这边的内容有什么建议吗?

我在给定域上尝试了一些不同的url,所有这些都可以正常工作,而不是根url


它工作正常,请检查您的根页面
静态#索引
可能有问题

感谢Ravi的帮助。一些页面被呈现,其他页面没有。并且日志上没有显示错误。也许heroku的路由被破坏了?我认为问题不在heroku方面,您是否尝试过在本地机器的生产环境中运行应用程序?