添加memcached配置
Signed-off-by: alanlong9278 <547533434@qq.com>
This commit is contained in:
parent
0668af4f89
commit
945192f1d8
2
Gemfile
2
Gemfile
|
@ -23,7 +23,7 @@ gem 'spreadsheet'
|
||||||
gem 'ruby-ole'
|
gem 'ruby-ole'
|
||||||
#gem 'email_verifier', path: 'lib/email_verifier'
|
#gem 'email_verifier', path: 'lib/email_verifier'
|
||||||
gem 'rufus-scheduler'
|
gem 'rufus-scheduler'
|
||||||
#gem 'dalli', path: 'lib/dalli-2.7.2'
|
gem 'dalli'
|
||||||
gem 'rails_kindeditor',path:'lib/rails_kindeditor'
|
gem 'rails_kindeditor',path:'lib/rails_kindeditor'
|
||||||
group :development do
|
group :development do
|
||||||
gem 'grape-swagger'
|
gem 'grape-swagger'
|
||||||
|
|
|
@ -11,7 +11,8 @@ RedmineApp::Application.configure do
|
||||||
# Show full error reports and disable caching
|
# Show full error reports and disable caching
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
|
#config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
|
||||||
|
config.cache_store = :dalli_store
|
||||||
# Don't care if the mailer can't send
|
# Don't care if the mailer can't send
|
||||||
config.action_mailer.raise_delivery_errors = true
|
config.action_mailer.raise_delivery_errors = true
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,8 @@ RedmineApp::Application.configure do
|
||||||
# Full error reports are disabled and caching is turned on
|
# Full error reports are disabled and caching is turned on
|
||||||
config.logger = Logger.new('log/production.log', 'daily',1048576) # daily, weekly or monthly
|
config.logger = Logger.new('log/production.log', 'daily',1048576) # daily, weekly or monthly
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
|
config.cache_store = :dalli_store
|
||||||
|
#config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
|
||||||
# Enable serving of images, stylesheets, and javascripts from an asset server
|
# Enable serving of images, stylesheets, and javascripts from an asset server
|
||||||
# config.action_controller.asset_host = "http://assets.example.com"
|
# config.action_controller.asset_host = "http://assets.example.com"
|
||||||
|
|
||||||
|
|
|
@ -438,13 +438,6 @@ ActiveRecord::Schema.define(:version => 20150415032102) do
|
||||||
|
|
||||||
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
||||||
|
|
||||||
create_table "discuss_demos", :force => true do |t|
|
|
||||||
t.string "title"
|
|
||||||
t.text "body"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "documents", :force => true do |t|
|
create_table "documents", :force => true do |t|
|
||||||
t.integer "project_id", :default => 0, :null => false
|
t.integer "project_id", :default => 0, :null => false
|
||||||
t.integer "category_id", :default => 0, :null => false
|
t.integer "category_id", :default => 0, :null => false
|
||||||
|
|
Loading…
Reference in New Issue