fix edge compatibility in docker config file (wss:// --> wss: ). also clean up hash removal of url and add docker.yml to the files to be deployed by capistrano

This commit is contained in:
Ralf Teusner
2017-03-07 18:09:31 +01:00
parent c474ac3d87
commit dec45880b9
3 changed files with 7 additions and 5 deletions

View File

@ -6,8 +6,10 @@ CodeOceanEditorWebsocket = {
sockURL.pathname = url; sockURL.pathname = url;
sockURL.protocol = '<%= DockerClient.config['ws_client_protocol'] %>'; sockURL.protocol = '<%= DockerClient.config['ws_client_protocol'] %>';
//return the URL, but strip last # if there is one... // strip anchor if it is in the url
return sockURL.toString().replace(/#$/,''); sockURL.hash = ''
return sockURL.toString();
}, },
initializeSocket: function(url) { initializeSocket: function(url) {

View File

@ -4,7 +4,7 @@ set :default_env, 'PATH' => '/usr/java/jdk1.8.0_40/bin:$PATH'
set :deploy_to, '/var/www/app' set :deploy_to, '/var/www/app'
set :keep_releases, 3 set :keep_releases, 3
set :linked_dirs, %w(log public/uploads tmp/cache tmp/files tmp/pids tmp/sockets) set :linked_dirs, %w(log public/uploads tmp/cache tmp/files tmp/pids tmp/sockets)
set :linked_files, %w(config/action_mailer.yml config/code_ocean.yml config/database.yml config/newrelic.yml config/secrets.yml config/sendmail.yml config/smtp.yml) set :linked_files, %w(config/action_mailer.yml config/docker.yml.erb config/code_ocean.yml config/database.yml config/newrelic.yml config/secrets.yml config/sendmail.yml config/smtp.yml)
set :log_level, :info set :log_level, :info
set :puma_threads, [0, 16] set :puma_threads, [0, 16]
set :repo_url, 'git@github.com:openHPI/codeocean.git' set :repo_url, 'git@github.com:openHPI/codeocean.git'

View File

@ -32,7 +32,7 @@ production:
timeout: 60 timeout: 60
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %> workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
ws_host: ws://localhost:4243 #url to connect rails server to docker host ws_host: ws://localhost:4243 #url to connect rails server to docker host
ws_client_protocol: wss:// #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production) ws_client_protocol: 'wss:' #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
staging: staging:
<<: *default <<: *default
@ -46,7 +46,7 @@ staging:
timeout: 60 timeout: 60
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %> workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
ws_host: ws://localhost:4243 #url to connect rails server to docker host ws_host: ws://localhost:4243 #url to connect rails server to docker host
ws_client_protocol: wss:// #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production) ws_client_protocol: 'wss:' #set the websocket protocol to be used by the client to connect to the rails server (ws on development, wss on production)
test: test:
<<: *default <<: *default