Browse Source

删除硬编码ws地址

pull/4/head
欧醚 3 years ago
parent
commit
6e1eb19ae0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/initializers/1_hosts.rb

+ 1
- 1
config/initializers/1_hosts.rb View File

@ -21,7 +21,7 @@ Rails.application.configure do
config.x.streaming_api_base_url = ENV.fetch('STREAMING_API_BASE_URL') do
if Rails.env.production?
"ws#{https ? 's' : ''}://ws-#{web_host}"
"ws#{https ? 's' : ''}://#{web_host}"
else
"ws://#{ENV['REMOTE_DEV'] == 'true' ? host.split(':').first : 'localhost'}:4000"
end

Loading…
Cancel
Save