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:
@ -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) {
|
||||||
|
@ -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'
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user