我的应用今天运行良好,但是突然之间,没有任何部署,它开始只显示空白页面。
这是我的构建日志
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上打开了一张票,但是在我等待期间,是否有人对如何检查我身边的东西表示怀疑?
答案 0 :(得分:1)
我在给定的域上尝试了一些不同的url,但它们都可以正常工作,而不是根url
https://sculp-demo.herokuapp.com/tos
一切正常,请检查您的根页面static#index
可能有问题