Skip to content

Commit

Permalink
feat: add production configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mewthu2 committed May 3, 2024
1 parent 97d7751 commit 555bfb7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ yarn-debug.log*
mysql-data

# Ignore node_modules
/node_modules/
/node_modules/
/config/credentials.yml.enc
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ GEM
rdoc (6.6.3.1)
psych (>= 4.0.0)
redis (4.8.1)
redis-client (0.21.1)
redis-client (0.22.1)
connection_pool
regexp_parser (2.9.0)
reline (0.5.1)
Expand Down Expand Up @@ -262,7 +262,7 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sidekiq (7.2.2)
sidekiq (7.2.4)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
rack (>= 2.2.4)
Expand Down
3 changes: 1 addition & 2 deletions config/cable.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
development:
adapter: redis
url: redis://localhost:6379/1

url: ENV["REDISCLOUD_URL"]
test:
adapter: test
6 changes: 3 additions & 3 deletions config/redis.yml → config/initializers/redis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
development:
url: redis://localhost:6379/1
url: ENV["REDISCLOUD_URL"]
logger: info

test:
url: redis://localhost:6379/1
url: ENV["REDISCLOUD_URL"]
logger: false

staging:
url: redis://localhost:6379/1
url: ENV["REDISCLOUD_URL"]
logger: false

production:
Expand Down
2 changes: 1 addition & 1 deletion config/sidekiq.rb → config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Sidekiq.configure_server do |config|
if Rails.env.development?
config.redis = { url: 'redis://localhost:6379/0' }
config.redis = { url: ENV['REDISCLOUD_URL'] }
elsif Rails.env.production?
config.redis = { url: ENV['REDISCLOUD_URL'] }
end
Expand Down
Binary file modified dump.rdb
Binary file not shown.

0 comments on commit 555bfb7

Please sign in to comment.