У меня есть приложение rails Ubuntu 18.04. установка пакета прошла успешно, но когда я запускаю rake db: setup, он показывает
rake aborted! KeyError: ключ не найден: "URL_HOST" /var/www/myapp/code/config/environments/production.rb:71:in fetch'
/var/www/myapp/code/config/environments/production.rb:71:in
блок в /home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:210:in instance_eval'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:210:in
configure '/var/www/myapp/code/config/environments/production.rb:3:in <top (required)>'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
require'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in block in require'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in
load_dependency '/home/myappuser/.rvm/gems/ruby-2.5.0 / gems / activesupport-4.2.11.1 / lib / active_support / dependencies.rb: 274: в require'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:598:in
блоке (2 уровня) в '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:597:in each'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:597:in
блок в /home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib / rails / initializable.rb: 30: в instance_exec'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in
run '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:55:в block in run_initializers'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in
каждый '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:in tsort_each_child'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:in
run_initializers' / home / myappuser / .rvm / gems / ruby-2.5.0 / gems / railties-4.2.11.1 / lib / rails / application.rb: 352: в initialize!'
/var/www/myapp/code/config/environment.rb:5:in
'/home/myappuser/.rvm/gems/ruby-2.5. 0 / gems / activesupport-4.2.11.1 / lib / active_support / dependencies.rb: 274: в require'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
блоке require '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2. 11.1 / lib / active_support / dependencies.rb: 240: в load_dependency'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
require '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:328: в require_environment!'
/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:457:in
блоке в run_tasks_blocks '/home/myappuser/.rvm/gems/ruby-2.5.0/gems/rake-13.0.0/exe/rake:27:in <top (required)>'
/home/myappuser/.rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in
eval' / home / myappuser/.rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in `'Задачи: TOP => db: setup => db: схема: load_if_ruby => окружение (полная трассировка выполняется путем запуска задачи с помощью --trace)
Нужна помощь