File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2323# terminating a worker in development environments.
2424worker_timeout 3600 if ENV . fetch ( 'RAILS_ENV' , 'development' ) == 'development'
2525
26- # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
27- port Sagittarius ::Configuration . config [ :rails ] [ :web ] [ :port ]
26+ # Specify either a `bind` or `port` to listen on.
27+ bind_uri = Sagittarius ::Configuration . config [ :rails ] [ :web ] [ :bind ]
28+ port_number = Sagittarius ::Configuration . config [ :rails ] [ :web ] [ :port ]
29+
30+ if bind_uri
31+ bind bind_uri
32+ else
33+ port port_number
34+ end
2835
2936# Specifies the `environment` that Puma will run in.
3037environment ENV . fetch ( 'RAILS_ENV' , 'development' )
Original file line number Diff line number Diff line change 1010 password : changeme
1111 web :
1212 port : 3000
13+ bind : # For example: tcp://0.0.0.0:3000
1314 force_ssl :
1415 grpc :
1516 host : ' 0.0.0.0:50051'
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def self.defaults
2424 web : {
2525 port : 3000 ,
2626 force_ssl : nil ,
27+ bind : nil ,
2728 } ,
2829 grpc : {
2930 host : '0.0.0.0:50051' ,
You can’t perform that action at this time.
0 commit comments