Eb deploy "не удалось найти имя для входа - расширяется` ~ '", выполняя seed_fu - PullRequest
0 голосов
/ 06 февраля 2020

Я пытался развернуть приложение rails6 с помощью eb deploy. При выполнении seed_fu, couldn't find login name -- expanding ~ '`произошло.

.ebextensions / 01-rake.config:

container_commands:
  seed_fu:
    command: bundle exec rake db:seed_fu
    leader_only: true
    ignoreErrors: true

/ var / log / eb-activity.log:

...

[2020-02-06T08:24:54.638Z] INFO  [23014] - [Application update app-127d-200206_081856@24/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_giraffe_eye/Test for Command seed_fu] : Starting activity...
[2020-02-06T08:24:54.643Z] INFO  [23014] - [Application update app-127d-200206_081856@24/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_giraffe_eye/Test for Command seed_fu] : Completed activity. Result:

  Completed successfully.
[2020-02-06T08:24:54.643Z] INFO  [23014] - [Application update app-127d-200206_081856@24/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_giraffe_eye/Command seed_fu] : Starting activity...
[2020-02-06T08:24:55.279Z] INFO  [23014] - [Application update app-127d-200206_081856@24/AppDeployStage0/EbExtensionPostBuild/Infra-EmbeddedPostBuild/postbuild_0_giraffe_eye/Command seed_fu] : Completed activity. Result:
  rake aborted!
  ArgumentError: couldn't find login name -- expanding `~'
  /var/app/ondeck/vendor/bundle/gems/pry-0.12.2/lib/pry/pry_class.rb:5:in `expand_path'
  /var/app/ondeck/vendor/bundle/gems/pry-0.12.2/lib/pry/pry_class.rb:5:in `<class:Pry>'
  /var/app/ondeck/vendor/bundle/gems/pry-0.12.2/lib/pry/pry_class.rb:1:in `<main>'

...

.elasticbeanstalk / config.yml:

global:
  application_name: XXXXX
  default_ec2_keyname: XXXXX
  default_platform: arn:aws:elasticbeanstalk:ap-northeast-1::platform/Puma with Ruby 2.6
    running on 64bit Amazon Linux/2.11.2
  default_region: ap-northeast-1
  include_git_submodules: true
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: null
  sc: git
  workspace_type: Application

rake db:migration успешно выполнено. Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...