我使用托管VM部署了Rails应用程序。
我成功地部署了代码,但24小时来我得到了503个代码和消息:
错误:服务器错误 您所要求的服务尚不可用。请在30秒后再试。
这些是我的日志:

看起来就像应用程序引擎在循环中部署代码一样。应用程序引擎为计算引擎启动了五个实例。为什么需要这么多实例?
这是我的app.yaml:
# 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]发布于 2016-03-26 11:09:01
好的,工作是对的,知道吗。真的很奇怪但是请确认一下。您包括了一个.ruby-version文件,并在那里添加了您想要的红宝石版本,例如2.2.3,我添加了.dockerignore并在那里添加了
.git
log/*
tmp/*所以,知道再使用部署它
gcloud preview app deploy
所以这对我起了作用。我希望它也适用于你。
https://stackoverflow.com/questions/36222902
复制相似问题