Home>
current situation

Rails app to AWS EC2 instancegit cloneAfterunicornI'm trying to start.

bundle exec unicorn_rails -c config/unicorn.rb -E production -D

When the above command is executed

master failed to start, check stderr log for details

I get the error.

what I want to know

Looking at the logNoMethodErrorI wonder if the specified method is not defined ... but I don't know the details and I can't figure out the source of the error.

Could you please explain the details of the error?
Thanks for your cooperation.

I, [2020-09-19T07: 39: 18.067322 # 9935] INFO-: Refreshing Gem list
bundler: failed to load command: unicorn_rails (/home/ec2-user/.rbenv/versions/2.6.6/bin/unicorn_rails)
NoMethodError: undefined method `fetch'for #
environment

Amazon linux2
Rails 6
unicorn 5.4.1
macOS Catalina

  • Answer # 1

    NoMethodError: undefined method `fetch'for #

    The method called fetch is undefined. You say.
    Let's review the use of methods with that name

  • Answer # 2

    Nice to meet you.

    I've never used Unicorn, so it's an imaginary answer, but I hope you find it helpful.