0

管理対象VMを使用してRailsアプリケーションを配備しました。Google App Engineを繰り返し配備する

私は成功したコードを展開しますが、私は503コードとメッセージ得ている24時間:

Error: Server Error

The service you requested is not available yet. Please try again in 30 seconds.

これらは私のログです:

enter image description here

それはアプリケーションのようなのを見てエンジンはループ内にコードをデプロイしています。そして、アプリケーションエンジンは、計算エンジン用に5つのインスタンスを開始しました。なぜ、非常に多くのインスタンスが必要ですか?

# Copyright 2015, Google, Inc. 
# Licensed under the Apache License, Version 2.0 (the "License"); 
# you may not use this file except in compliance with the License. 
# You may obtain a copy of the License at 
# 
# http://www.apache.org/licenses/LICENSE-2.0 
# 
# Unless required by applicable law or agreed to in writing, software 
# distributed under the License is distributed on an "AS IS" BASIS, 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
# See the License for the specific language governing permissions and 
# limitations under the License. 

# [START runtime] 
runtime: ruby 
vm: true 
entrypoint: bundle exec rackup -p 8080 -E production config.ru 
# [END runtime] 

# [START resources] 
resources: 
    cpu: .5 
    memory_gb: 1.3 
    disk_size_gb: 10 
# [END resources] 

# [START scaling] 
automatic_scaling: 
    min_num_instances: 1 
    max_num_instances: 5 
    cool_down_period_sec: 60 
    cpu_utilization: 
    target_utilization: 0.5 
# [END scaling] 
+0

ようこそ。重要な情報を表示するために画像を使用しないでください。それをコピーして質問に貼り付け、読みやすくするために適切な書式を設定します。画像を検索することはできません。また、再利用するために必要なテキストをコピー/貼り付けすることもできません。最後のすべてのリンクと "[mcve]"を含めて、 "[ask]"を読むことをお勧めします。 –

答えて

0

オーケー、それが仕事の知る権利:

は、これが私のapp.yamlをです。それは本当に奇妙ですが、確かめてください。 あなたは.ruby-versionファイルが含まれており、たとえば2.2.3のために私のためにあなたがしたいRubyのバージョンが追加し、私は.dockerignoreを追加し、ちょうどGoogleのクラウドを使用してそれを再度展開

とIDKのだから

.git 
log/* 
tmp/* 

を追加し、知っていますgcloud preview app deploy

だから私のためにトリックをしました。私はそれがあなたのためにも働くことを願っています。