在 Rails 上 Ruby 的 gcloud 上出现 502 服务器错误
502 server error on gcloud with Ruby on Rails
我在从 github 克隆后立即部署了一个应用程序。我做了捆绑安装和一切,服务器说
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/app_loader.rb:40:
warning: Insecure world writable dir /google/gopath/bin in PATH, mode 040777
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is
deprecated
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is
deprecated
=> Booting WEBrick
=> Rails 5.0.1 application starting in development on http://localhost:8080
=> Run `rails server -h` for more startup options
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning:
constant ::Fixnum is deprecated
[2017-04-06 12:09:32] INFO WEBrick 1.3.1
[2017-04-06 12:09:32] INFO ruby 2.4.0 (2016-12-24) [x86_64-linux]
[2017-04-06 12:09:32] INFO WEBrick::HTTPServer#start: pid=334 port=8080
但是当我进入页面时,https://agarlogin-1142.appspot.com/
它说
错误:服务器错误
服务器遇到临时错误,无法完成您的请求。
请在 30 秒后重试。
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text="#000000" bgcolor="#ffffff">
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your
request.<p>Please try again in 30 seconds.</p></h2>
<h2></h2>
</body></html>
提前致谢。
这可以帮助:
出现此警告是因为您使用的是 ruby 2.4.0
在我们的应用程序代码中,大多数时候我们不必担心这种变化。但是像 Rails 这样的图书馆使用 class 的数字来做出某些决定。这些库需要同时支持 Ruby 2.4 和 Ruby.
的早期版本
我在从 github 克隆后立即部署了一个应用程序。我做了捆绑安装和一切,服务器说
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/app_loader.rb:40:
warning: Insecure world writable dir /google/gopath/bin in PATH, mode 040777
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is
deprecated
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is
deprecated
=> Booting WEBrick
=> Rails 5.0.1 application starting in development on http://localhost:8080
=> Run `rails server -h` for more startup options
/home/hwangjinsong/.gems/gems/activesupport-
5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning:
constant ::Fixnum is deprecated
[2017-04-06 12:09:32] INFO WEBrick 1.3.1
[2017-04-06 12:09:32] INFO ruby 2.4.0 (2016-12-24) [x86_64-linux]
[2017-04-06 12:09:32] INFO WEBrick::HTTPServer#start: pid=334 port=8080
但是当我进入页面时,https://agarlogin-1142.appspot.com/ 它说
错误:服务器错误
服务器遇到临时错误,无法完成您的请求。 请在 30 秒后重试。
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text="#000000" bgcolor="#ffffff">
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your
request.<p>Please try again in 30 seconds.</p></h2>
<h2></h2>
</body></html>
提前致谢。
这可以帮助:
出现此警告是因为您使用的是 ruby 2.4.0
在我们的应用程序代码中,大多数时候我们不必担心这种变化。但是像 Rails 这样的图书馆使用 class 的数字来做出某些决定。这些库需要同时支持 Ruby 2.4 和 Ruby.
的早期版本