2017-04-06 67 views
1

我從github克隆後立即部署了應用程序。我沒有捆綁安裝和一切,和服務器說使用Ruby on Rails在gcloud上發生502服務器錯誤

/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> 

在此先感謝您。

回答

0

這可以幫助:

此警告出現,因爲你正在使用Ruby 2.4.0

warning: constant ::Fixnum is deprecated When generating new model

我們不必擔心這種變化大部分的時間在我們的應用程序代碼。但像Rails這樣的庫使用數字類來做出某些決定。這些庫需要支持Ruby 2.4和以前的Ruby版本。