我收到以下錯誤,當我運行RAILS_ENV=production bundle exec rails s
socket.rb:206:在'綁定':地址已在使用 - 綁定(2)127.0.0.1:3000(錯誤:: EADDRINUSE)
'綁定':地址已在使用 -
我已經嘗試了一些其他職位的綁定(2)127.0.0.1:3000(錯誤:: EADDRINUSE),從那裏我發現下面的命令rails s -p 3001
這適用於localhost:3001,但是當我推送到heroku時,出現以下錯誤,當我去我的網址。我猜這可能是我的database.yml文件的問題,因爲它給了我一些問題。
很抱歉,但發生了問題。
導軌-v的Rails 4.2.1
紅寶石-v紅寶石2.2.0p0(2014年12月25日修訂版49005)[x86_64的-darwin15]
的database.yml
default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: 5
development:
<<: *default
database: vlog_development
test:
<<: *default
database: vlog_test
production:
<<: *default
database: vlog_production
username:
password:
你在heroku上得到同樣的錯誤嗎? ''bind':已經在使用的地址 - bind(2)' – Emu
不,在Heroku中,當我輸入一些數據到一個表單域然後按回車我得到的錯誤是抱歉,但出了問題。 –
https://gentle-fjord-81780.herokuapp.com/apps/texty在這裏試試看,你會看到 –