Describe the bug
On the process to deploy heroku app, it shows me this error:
Rails backports are deprecated. DEPRECATION WARNING: SettingActiveRecord::Base.configurationswith[]=is deprecated. UseActiveRecord::Base.configurations=directly to set the configurations instead. (called from <top (required)> at /app/app.rb:5) DEPRECATION WARNING: SettingActiveRecord::Base.configurationswith[]=is deprecated. UseActiveRecord::Base.configurations=directly to set the configurations instead. (called from <class:App> at /app/app.rb:10) rake aborted! TypeError: can't convert nil into an exact number /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:in+'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:in plus_with_duration' /app/lib/instagram_token_agent/client.rb:18:inrefresh'
lib/tasks/setup.rake:19:in block in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in<top (required)>'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:in load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:inkernel_load'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:28:in run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:465:inexec'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:ininvoke_command'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:27:indispatch'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:18:instart'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:30:in block in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/friendly_errors.rb:124:inwith_friendly_errors'
/app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:22:in <top (required)>' /app/vendor/bundle/bin/bundle:104:inload'
/app/vendor/bundle/bin/bundle:104:in <main>' Tasks: TOP => setup (See full trace by running task with --trace)
Describe the bug On the process to deploy heroku app, it shows me this error:
Rails backports are deprecated. DEPRECATION WARNING: Setting
ActiveRecord::Base.configurationswith
[]=is deprecated. Use
ActiveRecord::Base.configurations=directly to set the configurations instead. (called from <top (required)> at /app/app.rb:5) DEPRECATION WARNING: Setting
ActiveRecord::Base.configurationswith
[]=is deprecated. Use
ActiveRecord::Base.configurations=directly to set the configurations instead. (called from <class:App> at /app/app.rb:10) rake aborted! TypeError: can't convert nil into an exact number /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:in
+' /app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/time/calculations.rb:264:inplus_with_duration' /app/lib/instagram_token_agent/client.rb:18:in
refresh' lib/tasks/setup.rake:19:inblock in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in
<top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:inload' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:74:in
kernel_load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli/exec.rb:28:inrun' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:465:in
exec' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor.rb:387:indispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:27:in
dispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:instart' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/cli.rb:18:in
start' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:30:inblock in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/lib/bundler/friendly_errors.rb:124:in
with_friendly_errors' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.0.2/exe/bundle:22:in<top (required)>' /app/vendor/bundle/bin/bundle:104:in
load' /app/vendor/bundle/bin/bundle:104:in<main>' Tasks: TOP => setup (See full trace by running task with --trace)