提交 eea6f7bc 编写于 作者: D David Heinemeier Hansson

Avoid Action Cable stubs on --skip-action-cable

Still missing the stuff in app/ – we need to basically switch from a *
match to specifically picking out what we need.
上级 a70331c9
......@@ -57,7 +57,7 @@ def app
directory 'app'
keep_file 'app/assets/images'
keep_file 'app/assets/javascripts/channels'
keep_file 'app/assets/javascripts/channels' unless options[:skip_action_cable]
keep_file 'app/mailers'
......@@ -84,7 +84,7 @@ def config
directory "environments"
directory "initializers"
directory "locales"
directory "redis"
directory "redis" unless options[:skip_action_cable]
end
end
......
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
Rails.application.eager_load!
<%- unless options[:skip_action_cable] -%>
Rails.application.eager_load!
require 'action_cable/process/logging'
<%- end -%>
run Rails.application
......@@ -40,8 +40,10 @@ Rails.application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
<%- unless options[:skip_action_cable] -%>
# Action Cable should be mounted in a separate process for most production setups
# config.action_cable.url = 'wss://example.com/cable'
<%- end -%>
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册