I am uploading ROR application on Heroku but I am getting this error.
/app/vendor/bundle/ruby/2.4.0/gems/puma-3.12.1/lib/puma/binder.rb:273:in 'initialize':
Cannot assign requested address - bind(2) for "xyz.herokuapp.com" port 28159 (Errno::EADDRNOTAVAIL)
I attached procfile and puma.rb code.
Procfile
:
web: bundle exec puma -c config/puma.rb
release: bundle exec rake db:migrate
puma.rb
:
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
threads threads_count, threads_count
port ENV.fetch("PORT") { 3000 }
environment ENV.fetch("RAILS_ENV") { "development" }
I tried with puma 3.7 also but no luck Changed configuration of procfile too
On local its working fine but on heroku giving eror.