首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google反复部署

Google反复部署
EN

Stack Overflow用户
提问于 2016-03-25 15:30:45
回答 1查看 94关注 0票数 0

我使用托管VM部署了Rails应用程序。

我成功地部署了代码,但24小时来我得到了503个代码和消息:

错误:服务器错误 您所要求的服务尚不可用。请在30秒后再试。

这些是我的日志:

看起来就像应用程序引擎在循环中部署代码一样。应用程序引擎为计算引擎启动了五个实例。为什么需要这么多实例?

这是我的app.yaml:

代码语言:javascript
复制
# 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]
EN

回答 1

Stack Overflow用户

发布于 2016-03-26 11:09:01

好的,工作是对的,知道吗。真的很奇怪但是请确认一下。您包括了一个.ruby-version文件,并在那里添加了您想要的红宝石版本,例如2.2.3,我添加了.dockerignore并在那里添加了

代码语言:javascript
复制
.git
log/*
tmp/*

所以,知道再使用部署它

gcloud preview app deploy

所以这对我起了作用。我希望它也适用于你。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36222902

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档