1

I would like to deploy my rails app, which locally runs with foreman to a server, where supervisord handles the restarts.

Unfortunatley the app throws this error and I have no idea where $PORT comes from, nor from where this part gets started. Locally everything runs nice.

My app uses redis (which is the second part in the procfile) and puma as a webserver

.../.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/uri/generic.rb:213:in 'initialize': the scheme tcp does not accept registry part: 0.0.0.0:$PORT

4

1 回答 1

1

检查您的主管配置。

bundle exec puma -p $PORT

不会使用环境变量PORT。它应该可以手动设置端口。例如:

bundle exec puma -p 3000
于 2013-09-10T14:28:23.327 回答