Skip to content

Commit

Permalink
Merge pull request #2150 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
zmcNotafraid committed Aug 27, 2024
2 parents 2d15c61 + bbe9887 commit b7cc59a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
:redis_cache_store, {
url: ENV["REDIS_URL"],
driver: :hiredis,
namespace: ENV["CACHE_NAMESPACE"]
namespace: ENV["CACHE_NAMESPACE"],
}

# Use a real queuing backend for Active Job (and separate queues per environment).
Expand All @@ -77,7 +77,7 @@
authentication: "plain",
enable_starttls_auto: true,
open_timeout: 5,
read_timeout: 5
read_timeout: 5,
}

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
Expand All @@ -103,9 +103,11 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

client = Dalli::Client.new(ENV["MEMCACHED_URL"],
value_max_bytes: 10485760)
config.action_dispatch.rack_cache = {
verbose: true,
metastore: File.join(ENV["MEMCACHED_URL"], "meta"),
entitystore: File.join(ENV["MEMCACHED_URL"], "body")
metastore: client,
entitystore: client,
}
end

0 comments on commit b7cc59a

Please sign in to comment.