前提・実現したいこと
Herokuで本番環境運用しているRailsサービスを、GAEに移行しようとしています。
どうやら、ヘルスチェックが終わらずにタイムアウトしてしまっているようです。
発生している問題・エラーメッセージ
ERROR: (gcloud.app.deploy) Operation [apps/[サービス名]/operations/0c33ed31-3096-4cb8-add5-e37762788546] timed out. This operation may still be underway.
該当のソースコード
ruby
1# app.yaml 2 3entrypoint: bundle exec rackup --port $PORT 4env: flex 5runtime: ruby 6 7liveness_check: 8 path: "/healthcheck" 9 10readiness_check: 11 path: "/healthcheck" 12 app_start_timeout_sec: 3600 13 14env_variables: 15 SECRET_KEY_BASE: [secret_key]
ruby
1class GaeController < ApplicationController 2 protect_from_forgery :except => [:healthcheck] 3 def healthcheck 4 render text:'ok' 5 end 6end
ruby
1# route.rb 2 3get '/healthcheck' => 'gae#healthcheck'
あなたの回答
tips
プレビュー